hi Yaron,
keep in mind that W3C XML Schema limits the XPath expression you can use in the xpath attribute of an identity constraint to a subset of the full XPath language. the XPath expression must satisfy all conditions defined in http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint

looking at the BNF reveals that '/' is not allowed at the beginning,
but you should be able to rewrite the selector's xpath of your example without the '/' by defining the identity constraint on the parent of the 'Cell' element and omitting the '/' at the beginning.

regards
Tobias

----- Original Message ----- From: "Yaron Kretchmer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 24, 2005 7:54 AM
Subject: Xerces and Xpath


Hi All
Does Xerces-C support the full Xpath/Xpath2 syntax? I'm trying to
specify a key/keyref pair, and DOMprint complains whenever I try
something like "  <xs:selector xpath="/Cell" />"
The error message is
  Message: Not allowed to have '/' at the beginning of an xpath value

But I **think** this is legal Xpath? Maybe I'm wrong...

Any help appreciated

Yaron



Reply via email to