Hi Brian,

The error Xerces is producing certainly isn't very helpful, no doubt there.
But it is a bug in your schema.  <selector>s cannot use the attribute axis;
i.e., @anything isn't valid in a <selector>.  You can find the subset of
xpath supported in <selector> and <field> expressions in section 3.11.6 of
the Schema Structures spec.

Hope that helps,
Neil

Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  416-448-3519, T/L 778-3519
E-mail:  [EMAIL PROTECTED]



"Brian K. Buckley" <[EMAIL PROTECTED]> on 05/30/2001 08:48:42 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  xml schema bug or xerces bug?


Hello all,

When I attempt to validate a document using xerces-j 1.4.0, I'm getting the
error:
Schema error: token not supported: "EXPRTOKEN_OPEN_BRACKET".

The error happens in the piece of XMLSchema shown below, on the 2nd line.

Is the xml schema invalid or is this a bug in xerces?

Thanks,

- Brian
------------------------------
<xsd:unique name="tablename">
      <xsd:selector xpath="[EMAIL PROTECTED]'a']"/>
       <xsd:field xpath="name"/>
</xsd:unique>
------------------------------


---------------------------------------------------------------------
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]

Reply via email to