This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
translating xml:lang attribute
- To: XSL-List Mulberrytech <xsl-list at mulberrytech dot com>
- Subject: translating xml:lang attribute
- From: "Matthias O. Will" <m dot o dot will at web dot de>
- Date: Tue, 17 Oct 2000 13:28:49 +0200
- Organization: Institut f. Informatik, Univ. Freiburg
- Reply-To: xsl-list at mulberrytech dot com
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