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

translating xml:lang attribute

Subject: translating xml:lang attribute
From: "Matthias O. Will" <m.o.will@xxxxxx>
Date: Tue, 17 Oct 2000 13:28:49 +0200
xml lang attribute
Hi,

I am translating documents from a given DTD to another. The input DTD
has the following:

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

My input file has a

<Language xml:lang="ge"/>

but my parser (I am using Xalan) complains when reading the input and
produces a line such as

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

Any ideas how I can process this attribute correctly? What I want to do
is to translate a two-digit ISO 639 language string into a three-digit
ISO 639-2 language string (e. g. 'de' would be translated into 'ger').

Thanks for any input 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.