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]
Abstract types in RNG ?

I'm trying to learn RNG (compact) and I'm stumped on this one.

In XSD I can do this but cant figure it out in RNG ... is it possible ?

 

I'd like 2 concrete types to derive from the same base type and only differ by element name.

 

Example

 

Address = element [What here ?] {

                element name { xs:string },

                element address1 { xs:string} ,

                ...

}

 

ShippingAddress  = element shipAddress  [ derived from Address ?]

BillingAddress  = element billAddress  [ derived from Address ?]

 

The only difference between shipAddress and billAddress would be the element name.

Is this possible in RNG ?  I know I can just duplicate the definitions but that feels so bad !

 

-David

 

----------------------------------------

David A. Lee

dlee@calldei.com

http://www.xmlsh.org

 



[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