W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2001

More on XQueryX paths

From: Howard Katz <howardk@fatdog.com>
Date: Sat, 16 Jun 2001 17:59:29 -0700
To: <www-ql@w3.org>
Message-ID: <NDBBIAJFNKNOBCIODNKDEEKHCFAA.howardk@fatdog.com>
Another question: What's the syntax for longer path expressions? None of the
examples show multi-step expressions having more than a single operator.
What if I want to say

      /article/section

Given the DTD, it looks like I have to recast this into AST form:

              /
     null          /
            article   section

so I can say something like this:

     <q:query ...>
          <q:step axis="CHILD">
                <q:identifier/>
                <q:step axis="CHILD">
                    <q:identifier>article</q:identifier>
                    <q:identifier>section</q:identifier>
                </q:step>
          </q:step>
     </q:query>

Is that correct?

Howard
Received on Saturday, 16 June 2001 20:59:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:17 GMT