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

Re: restricting element name length

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 26 Feb 2002 18:32:56 +0000
Message-ID: <64267003861.20020226183256@jenitennison.com>
To: Oleg Tkachenko <olegt@multiconn.com>
CC: xmlschema-dev@w3.org
Hi Oleg,

> Can I restrict length of an element name in w3 schema?

You mean so that you can create a schema in which people use whatever
elements they like, but the names have to be below a certain length?
I'm afraid that the only wildcard that's supported by XML Schema is
xs:any, which only allows you to restrict the included elements by
their namespace, not by the length of their name.

I think that the only kinds of schema languages that would enable you
to place are those based on XPath, such as Schematron. You could
always include some Schematron within your XML Schema, to express the
constraint.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Tuesday, 26 February 2002 13:33:01 GMT

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