[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Fw: XML-QL (was Re: Whence XQL?)

Subject: Fw: XML-QL (was Re: Whence XQL?)
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Thu, 25 Mar 1999 16:12:26 +0200
Fw: XML-QL (was Re: Whence XQL?)
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.