W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Re: Meaning of length pattern in hexBinary and base64Binary

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 30 May 2003 09:35:53 +0100
Message-ID: <28662947848.20030530093553@jenitennison.com>
To: "Wiedmann, Jochen" <jochen.wiedmann@softwareag.com>
CC: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi Jochen,

> what is constrained by xs:pattern in a binary type? Is it the number
> of characters in the input string or the number of generated bytes?

In Validation Rule: Length Valid it says:

  "1.2 if {primitive type definition} is hexBinary or base64Binary,
       then the length of the value, as measured in octets of binary
       data, must be equal to {value};"

So it's the number of generated bytes.



Jeni Tennison
Received on Friday, 30 May 2003 04:36:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:02 UTC