W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2001

Catching node at undetermined depth in key

From: Guillaume Rousse <rousse@ccr.jussieu.fr>
Date: Sat, 1 Sep 2001 11:52:46 +0200
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-Id: <20010901095247.58345FA8@silbermann.snv.jussieu.fr>
I have a bunch of nested foo under foos element i would like to identify

<key name="fooKey">
  <selector xpath="foos/descendant::foo"/>
  <field xpath="@id"/>
</key>
Using descendant axis in selector xpath seems to be not allowed, so this is 
not possible

<key name="fooKey">
  <selector xpath="foos/*/foo"/>
  <field xpath="@id"/>
</key>
This one matches only first nesting level (not top-level, nor sublevels)

<element name="foos">
  [..]
  <key name="fooKey">
    <selector xpath=".//foo"/>
    <field xpath="@id"/>
  </key>
</element>
This one (i'm not even sure it's correct) makes fooKey locale to foos 
element, and not available elsewhere.

So, what can i do for this ?
-- 
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html
Received on Saturday, 1 September 2001 05:54:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC