W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

Hex Expression

From: Michael Rossi <mrossi@csc.com>
Date: Thu, 8 Aug 2002 15:10:48 -0400
To: xmlschema-dev@w3.org
Message-ID: <OFC8C15222.051AA815-ON85256C0F.00686F0A@com>

I'm trying to model a type for a 16-digit Hex number. Simple, right? So I
use a restriction of string with the pattern "([0-9][a-f][A-F]){16}". Yet
when I try to validate an instance containing the number: 0000000478A3200F,
XML Spy (v4.4) complains that the value doesn't match the pattern. Anyone
know what I'm missing?

BTW - I did notice that there's a hexBinary type already in the spec. My
hesitation in using it was that it (obviously) implies a hex encoding of
binary data. I'm simply dealing with Hex data (although it always comes
down to binary at some point, of course :-). Are there any processing
implications of using hexBinary to be concerned about? TIA.

Michael A. Rossi
Computer Sciences Corporation
856-983-4400 x4964
Received on Thursday, 8 August 2002 15:11:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC