Hi Guillaume, Looks like you have two choices to me:
<key name="fooKey"> <selector xpath="model:foos/model:foo | model:foos/*/model:foo"/> <field xpath="@id"/> </key> which should do exactly what you want but isn't perhaps as pretty as you might like; or <key name="fooKey"> <selector xpath=".//model:foo"/> <field xpath="@id"/> </key> which is the only way the Schema XPath subset lets you use the descendant axis. But this will match *all* model:foo elements in scope, not just those descendants of model:foos elements. Hope that helps, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 416-448-3519, T/L 778-3519 E-mail: [EMAIL PROTECTED] Guillaume Rousse <[EMAIL PROTECTED]> on 08/22/2001 12:24:34 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: xpath error <key name="fooKey"> <selector xpath="model:foos/*/model:foo"/> <field xpath="@id"/> </key> <key name="fooKey"> <selector xpath="model:foos/descendant::model:foo"/> <field xpath="@id"/> </key> I'm trying to catch all foo element at different nesting level. However, first solution only match for level >=1, not base level, and solution 2 returns: Schema error: token not supported: "EXPRTOKEN_AXISNAME_DESCENDANT". So what can i do ? -- Guillaume Rousse <[EMAIL PROTECTED]> GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
