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
something.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Wednesday, 16 January 2002 06:42:10 GMT

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