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

Re: restricting element name length

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Thu, 28 Feb 2002 00:07:13 +1100 (EST)
Message-ID: <1182.>
To: jeni@jenitennison.com
Cc: olegt@multiconn.com, xmlschema-dev@w3.org
>> 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.

Have a look at [1] to see how you can embedd Schematron rules within your 
XML Schema.


[1] http://www.topologi.com/public/Schtrn_XSD/Paper.html

> Cheers,
> Jeni
> ---
> Jeni Tennison
> http://www.jenitennison.com/
Received on Wednesday, 27 February 2002 08:03:39 UTC

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