More on XQueryX paths

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 UTC