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

parsing and translating xml:lang attribute

Subject: parsing and translating xml:lang attribute
From: "Matthias O. Will" <m.o.will@xxxxxx>
Date: Tue, 24 Oct 2000 13:01:51 -0400 (EST)
attribute xml
Hi,

some time ago, I sent the following question, and I am reposting it because
I haven't found a solution for this problem yet ... Any help is greatly
appreciated ...

My input DTD defines an element Language with an attribute xml:lang as
follows:


> <!ELEMENT Language EMPTY>
>     <!ATTLIST Language xml:lang NMTOKEN #REQUIRED>

I have an example XML file conforming to this DTD, which has an instance of
this tag as follows:

> <Language xml:lang="ge"/>

but Xalan complains while parsing and produces the following error message:

> Parser error: Attribute "xml:lang" is required and must be specified for
> element type "Language"

I have no clue why the XML is not parsed correctly. Any takers?

The second issue is that the values for this attribute are conforming to
the two-digit language abbreviations according to ISO 639, but my target
DTD uses three-digit language strings according to ISO 639-2 (e. g. 'de'
would be translated into 'ger'). I do have a list of both, but I wonder how
to technically best achieve the mapping using XSL.

Again, I would greatly appreciate any help on those issues!
Thanks for any insight on this,
Matt
--
Matthias O. Will (m.o.will@xxxxxx)                       <><
Institute of Computer Science,       University of Freiburg
Georges-Koehler-Allee, Bldg. 51, D-79110 Freiburg,  Germany
Phone:   +49-761-203-8170             Fax: +49-761-203-8162
URL:     http://ad.informatik.uni-freiburg.de/~will





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.