|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








