[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Value spaces are cool! I wish for a cross-product(aggrega
Hi Roger, How about going into complex types? For example, assuming you defined three value spaces, you can define an aggregate value space with: <xs:complexType name="Person-name"> <xs:sequence> <xs:element name="first" type="First-name"/> <xs:element name="middle" type="Middle-name"/> <xs:element name="last" type="Last-name"/> </xs:sequence> </xs:complexType> an example of value being: <person> <first>Roger</first> <middle>L</middle> <last>Costello</last> </person> I see two limitations though: 1. you cannot use this type in attributes - but with elements you can use XPath to access the component value spaces. 2. although you can add other labels for the aggregate value space, the labels for the component value spaces are fixed. Does it make sense? Kind regards, Ghislain
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|