[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Internationalization and naming
>At 10:57 AM 1/4/99 -0800, Andrew Layman wrote: >>Thanks. One of the intentions of XML-Data was to make aliases for names >>explicit. See http://www.w3.org/TR/1998/NOTE-XML-data-0105/#Aliases >> >>Here is text from the proposal: >> >>ElementTypes can be know be different names in different languages or >>domains. The equivalence of several names is effected by the sameAs >>attribute, as in >> >><elementTypeEquivalent id="livre" type="#Book"/> >><elementTypeEquivalent id="auteur" type="#author"/> > At 02:28 PM 1/4/99 -0500, Simon St.Laurent wrote: >I'm glad I'm not the first to come up with this, and glad to see as well >that the idea's had a reasonably full expression. Aliasing seems not to be >in DCD, and I know we didn't provide it in XSchema. Since we're on the topic, SOX offers equivalence like so: <elementtype name="livre"> <instanceof name="book"/> </elementtype> <elementtype name="auteur"> <instanceof name="author"/> </elementtype> This example allows <livre> in lieu of <book> and <auteur> in lieu of <author> And SOX namespace allow you to create local aliases for elements, attributes, entities, and notations defined in any included namespace. <include name="loc" namespace="http://www.loc.gov"/> <elementtype name="livre"> <instanceof namespace="loc" name="book"/> </elementtype> <elementtype name="auteur"> <instanceof namespace="loc" name="author"/> </elementtype> This example allows <livre> in lieu of <loc:book> and <auteur> in lieu of <loc:author> Localizing a SOX schema definition can be a simple remapping of the names of elements and attributes -- or a more complex remapping that adds new level in the document structure, adds to a base element's content model or attribute list, or redefines attributes and entities. For more info on SOX, see http://www.w3.org/Submission/1998/15/ Regards, Murray xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
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
|