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

Re: Extension of the lexical space

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 16 Jan 2002 11:42:03 +0000
Message-ID: <157788665420.20020116114203@jenitennison.com>
To: "Waterfeld, Dr., Walter" <Walter.Waterfeld@softwareag.com>
CC: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi Walter,

> is it possible to extend the lexical space of simple datatype,
> without changing its value space?

No, I'm afraid not.

> This would be useful for defining an additional date format for
> xs:date, to allow besides 2002-01-16 also 20020116.
> If not any other ideas are welcome how to achieve this.

You could run your XML instance document through a normalizer prior to
validation, mapping your date format onto the standard date format,
and then validate the result. A simple XSLT stylesheet would be one
method of doing the normalization, or a SAX filter, or even sed or



Jeni Tennison
Received on Wednesday, 16 January 2002 06:42:10 UTC

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