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

Re: Abbreviated Tag Names

  • From: Eric van der Vlist <vdv@d...>
  • To: Xml-Dev <xml-dev@l...>
  • Date: Mon, 22 Jan 2001 17:37:16 +0100

tag names
"Simon St.Laurent" wrote:
> 
> It seems like there are a substantial number of cases where 1-1 equivalence
> actually happens in the world - abbreviation and translation being the two
> largest.  I'm pondering (haven't yet built) a thesaurus processor, which
> lets you feed in a set of rules and specify which set applies, and then run
> it over documents.

It reminds me of a proposal done on a XMLfr mailing list [1] (the link
is in French, but a babelfish translation should be enough to give the
idea(s)).

One of the things I had been thinking of was, as you mention, to use
simple translation tables with a simple SAX filter.

The translation tables could define the mapping of similar vocabularies
using distinct namespaces such as:

<translations 
  xmlns="http://xmlTranslations.org/ns/tables" 
  xmlns:en="http://www.josebove.org/ns/activists#en" 
  xmlns:fr="http://www.josebove.org/ns/activists#fr" 
  xmlns:hi="http://www.josebove.org/ns/activists#hi" 
  > 
  <element 
    en:name="doc.en" 
    fr:name="doc.fr" 
    hi:name="doc.hi" 
    /> 
  <element 
    en:name="call" 
    fr:name="appel" 
    hi:name="..." 
  > 
    <attribute 
      en:name="level" 
      fr:name="niveau" 
      hi:name="..." 
    > 
  </element> 
</translations> 

Eric

[1] http://xmlfr.org/listes/xml-decid/2000/0126.html

> It does less than XSLT and carries less freight than XML Schema equivalence
> classes, which seems like a good thing to me.  I suspect it won't be that
> hard to implement as a SAX filter, XSLT transform, or DOM processor, though
> I'm still getting started.
> 
> Dictionary files add more weight, of course, but there might be ways to get
> around that for a lot of projects.
> 
> I wasn't planning on mentioning it until I had something to show, but since
> you mentioned....
> 
> Simon St.Laurent - Associate Editor, O'Reilly and Associates
> XML Elements of Style / XML: A Primer, 2nd Ed.
> XHTML: Migrating Toward XML
> http://www.simonstl.com - XML essays and books

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------

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.