[OpenAjaxIDE] Visual jQuery and its XML grammar
manos at abiss.gr
Wed Oct 31 16:19:00 PDT 2007
Sorry for x-posting.
My understanding is that this XML is generated using a JSDoc Toolkit
template, something that makes sense and is easy to write and maintain.
An example of a template that produces XML comes with the JSDoc Toolkit
distro. Please not that JSDoc Toolkit is JS-based and the successor to
the old perl-based JSDoc.
Anyway, I *think* JSDoc Toolkit is also able to resolve all globals, so
maybe a template to produce registry entries without human errors would
be a good thing, will investigate.
Quoting Jon Ferraiolo <jferrai at us.ibm.com>:
> I met one of the principal jQuery engineers, Yehuda Katz, at Ajax
> Experience last week. He is applying for membership as an individual.
> Yehuda has developed a system called Visual jQuery. I added an entry
> to our
> IDE Survey page for it as follows you can see below.
> Yehuda says that if our metadata format is sufficiently close to his
> metadata format, he might be able to modify his code (which he says
> been posted yet as open source, but he would be willing to do so) to
> support our format. Whether or not this works out, he does show that
> if the
> metadata format has the right characteristics, it can be used with an
> style sheet to achieve online documentation.
> Visual jQuery
> The jQuery team has an online and print documentation system called
> jQuery that (apparently) transforms JSDoc annotations into an XML
> which then goes through XSLT transformations to produce online
> documentation for jQuery and print documentation for jQuery. The link
> Visual jQuery is http://visualjquery.com/index.xml. To see the XML
> language, just do a view source.
> Here is a snippet:
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <?xml-stylesheet type='text/xsl' href='style/cat.xsl'?>
> <docs version='1.1'>
> <cat value='Core'>
> <method cat='Core' type='jQuery' short='This function accepts a
> containing a CSS or
> basic XPath selector which is then used to match a set of elements.'
> <desc>This function accepts a string containing a CSS or
> basic XPath selector which is then used to match a set of elements.
> The core functionality of jQuery centers around this function.
> Everything in jQuery is based upon this, or uses this in some way.
> The most basic use of this function is to pass in an expression
> (usually consisting of CSS or XPath), which then finds all matching
> By default, $() looks for DOM elements within the context of the
> current HTML document.</desc>
> <params type='String' name='expr'>
> <desc>An expression to search with</desc>
> <params type='Element|jQuery' name='context'>
> <desc>(optional) A DOM Element, Document or jQuery to use as
> <desc>Finds all p elements that are children of a div element.</desc>
> <before><p>one</p> <div><p>two</p></div> <p>three</p></before>
> <code>$("div > p")</code>
> <result>[ <p>two</p> ]</result>
> <desc>Searches for all inputs of type radio within the first form in
> <code>$("input:radio", document.forms)</code>
> <desc>This finds all div elements within the specified XML
> <code>$("div", xml.responseXML)</code>
> <method cat='Core' type='jQuery' see='appendTo(String)' short='Create
> elements on-the-fly from the provided String of raw HTML.' name='$'>
> <desc>Create DOM elements on-the-fly from the provided String of raw
> <params type='String' name='html'>
> <desc>A string of HTML to create on the fly.</desc>
> <desc>Creates a div element (and all of its contents) dynamically,
> and appends it to the element with the ID of body. Internally, an
> element is created and it's innerHTML property set to the given
> It is therefore both quite flexible and limited.</desc>
More information about the IDE