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

Re: restricting element name length

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Tue, 26 Feb 2002 20:24:34 +0100
Message-ID: <3C7BE0F2.3060406@dyomedea.com>
To: Oleg Tkachenko <olegt@multiconn.com>
Cc: xmlschema-dev@w3.org

Oleg Tkachenko wrote:
> Hello !
> Can I restrict length of an element name in w3 schema?

There are several different possible interpretations of your question :) ...

While the answer from Jeni is (as usual :) ) 100% accurate, if your 
question is "how can I restrict schemas to define elements with names 
having a maximum length of ...?", you could write a schema to validate 
those schemas.

To do so, you would have to create a schema which would redefine the 
definition of the complex types used by the schema for schema to 
describe its "xs:element" element in the different contexts where it is 
used and this shouldn't be a big deal!

With such a schema, you could then validate other schemas to check that 
they do not define elements with oversized length.

Hope this helps.

See you in Seattle.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Tuesday, 26 February 2002 14:24:37 UTC

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