XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Do not use the same tag name for different things ...Do you agree?

David Carlisle wrote (paraphrasing):

> The fact that you cannot have two different global declarations
> of a Tank element is a limitation of XML Schemas.  Other
> constraint languages do not have the limitation.

Wow!

> If you use Relax NG you can globally declare  tank-fish and
> tank-military patterns that both use the same element name,
> but each used in their respective contexts.

Wow!

I haven't done anything with Relax NG for a long time. Would someone show Relax NG code that creates two "Tank" elements (an aquarium tank and a military tank) without violating DRY (Don't Repeat Yourself), please?

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS