OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Internationalization and naming

[ Lists Home | Date Index | Thread Index ]
  • From: Murray Maloney <murray@muzmo.com>
  • To: XML-Dev Mailing list <xml-dev@ic.ac.uk>
  • Date: Mon, 4 Jan 1999 17:48:51 -0500

>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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

Copyright 2001 XML.org. This site is hosted by OASIS