Loading ...
Sorry, an error occurred while loading the content.

Re: [rng-users] jing + RELAX NG xsd:token on attributes: spaces coalesced?

Expand Messages
  • Syd Bauman
    Well, isn t that what xsd:token means? See http://www.w3.org/TR/xmlschema-2/#token If you want internal whitespace preserved before comparison, I think you
    Message 1 of 2 , Feb 27, 2012
    View Source
    • 0 Attachment
      Well, isn't that what xsd:token means?
      See http://www.w3.org/TR/xmlschema-2/#token

      If you want internal whitespace preserved before comparison, I think
      you should be using either "string" or "xsd:string".

      > I'm confused. If I use the schema attrbug.rnc (see below) it seems
      > to let through multiple spaces in a row, even though that shouldn't
      > be legal.
      >
      > I'm using this pattern:
      > xsd:token { pattern="[A-Za-z_][A-Za-z_0-9]*( [A-Za-z_][A-Za-z_0-9]*)*" }
      >
      > Below is a test file that I'm using with "java -jar jing.jar -c
      > attrbug.rnc attrbug.xml".
      >
      > What's going on here? Does jing coalesce spaces in attributes
      > before matching against xsd:token? Or am I missing something?
    Your message has been successfully submitted and would be delivered to recipients shortly.