This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
writing out attribute value for xml:lang tag
- To: XSL-List Mulberrytech <xsl-list at mulberrytech dot com>
- Subject: writing out attribute value for xml:lang tag
- From: "Matthias O. Will" <m dot o dot will at web dot de>
- Date: Fri, 13 Oct 2000 17:37:59 +0200
- Organization: Institut f. Informatik, Univ. Freiburg
- Reply-To: xsl-list at mulberrytech dot com
Hi,
When translating an XML document into another, how do I write out
attribute values for a xml:lang tag? E. g. if I have something like
<String xml:lang="en">This is a string</String>
and I need to use the xml:lang value (in this case, it's 'en'), how can
I use it in my xsl file?
<xsl:variable name="isolang"><xsl:value-of
select="String/@xml:lang"/></xsl:variable>
does not seem to work ...
Your help is greatly appreciated!
Thanks,
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