|
Subject: translating xml:lang attribute From: "Matthias O. Will" <m.o.will@xxxxxx> Date: Tue, 17 Oct 2000 13:28:49 +0200 |
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 |
|---|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: looping (was msxml install), Kay Michael | Thread | Grouping elements by attribute valu, DIDM |
| Re: SUMMARY: Re: Sorting on a varia, David Carlisle | Date | translating between character sets, Matthias O. Will |
| Month |