Subject: Fw: XML-QL (was Re: Whence XQL?)
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Thu, 25 Mar 1999 16:12:26 +0200
|
Roger L. Costello <costello@xxxxxxxxx> wrote:
>Here's how to do it using XML-QL:
>
>function AllPartNamesQuery () {
>
>// Source: Parts.xml
>// Find the names of all the parts
>
>construct <name>$name</name>
>where <Parts>
> <part*>
> <name>$name</name>
> </>
> </Parts> IN "Parts.xml"
>}
>
>How would you do this using XML syntax? /Roger
Like this:
<xsl:template match="part">
<xsl:value-of select="name"/>
</xsl:template>
But that's a different story :-) BTW, it is nice though to see some queries
which become simpler when converted from XML-QL to "XQL"; it is easy to
think that the reverse always holds, since the XQL documents focus on the
hard cases.
Share & Enjoy,
Oren Ben-Kiki
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|