This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

translating 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@web.de)                       <>< 
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]