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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Friday, 30 May 2003 04:36:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT