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



Jeni Tennison
Received on Tuesday, 26 February 2002 13:33:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:59 UTC