[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Internationalization and naming

  • From: <david@m...>
  • To: "Simon St.Laurent" <simonstl@s...>
  • Date: Mon, 4 Jan 1999 14:43:21 -0500 (EST)

portugues names
Simon St.Laurent writes:

 > Will English vocabularies be used, or will other languages be used?
 > In the current XML 1.0 spec, validation requires exact matching of
 > tag names, and as far as I can tell, there isn't any discussion of
 > validating a transformed document (via XSL or whatever) that
 > converts documents using French or Chinese element/attribute names
 > to English (or whatever the standard uses.)

 > This seems like something that the next generation of schemas could
 > address neatly, by providing room for something like a translation
 > table, identifying elements and their 'standard' equivalents.  This
 > could open up validation considerably, and possibly make it a lot
 > easier to get buy-in from user communities that perhaps have no
 > input toward the standards or their choice of language.

Simon: this is exactly the kind of thing that people can use
architectural forms for.  The full version of AFs suffers from the
common SGML difficulty of trying to solve so many different problems
that the complexity of the solution becomes yet another problem;
however, a simplified profile, like the one I used for XAF (in
retrospect, I'd simplify that much further) would fit the bill nicely.

Basically, AFs let you declare that there exists a view of the
document (an "architecture") where elements and attributes might have
different names: you then declare what attribute(s) you will use to
represent the canonical names.  For example, using the simplified XAF
profile (and using pig-Portuguese, since I don't claim to speak or
understand the language),

  <?xml version="1.0"?>
  <?is10744:arch name="html"?>

  <texto html="html">
   <parte-dianteira html="front">
    <título html="title">Exemplo em Portugues</título>
   </parte-dianteira>
   <parte-principal html="body">
    <h1>Exemplo em Portugues</h1>
    <p>Este é um exemplo simples no português muito inábil.</p>
   </parte-principal>
  </texto>

The problem with using a schema is that you either kill light-weight
XML processing or force the translation to take place upstream, so the
client doesn't have the opportunity to take advantage of the
non-English material.  This example isn't all that complicated (though
the declaration syntax will have to change a bit) -- it might even be
fun to add namespaces to the mix.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.