Hi Dave,

Thanks for your analysis. So I guess I have two questions - why doesn't the illegal syntax (*:car) give an error in Xerces-C, and why don't the legal syntaxes (below) work?

David Bertoni wrote:
John Snelson wrote:
1)
    <xs:unique name="vinUnique">
      <xs:selector xpath="ns:car"/>
      <xs:field xpath="@vin"/>
    </xs:unique>

Xerces-C 2.8: Valid
Xerces-C 3.0: Valid

5)
    <xs:unique name="vinUnique">
      <xs:selector xpath="."/>
      <xs:field xpath="ns:car/@vin"/>
    </xs:unique>

Xerces-C 2.8: Valid
Xerces-C 3.0: Valid

I believe the example document I attached should fail both of these uniqueness constraints.

John

--
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to