[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xml:lang (was Re: Evaluatable XPath)

Subject: xml:lang (was Re: Evaluatable XPath)
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 18 May 2000 12:19:51 -0600 (MDT)
xpath xml lang
> <text xml:lang="ENG">English text</text>
> <text xml:lang="RU">Russian text</text>

I agree that this would be a more elegant solution.

It should be noted, however, that there are restrictions on the value of
xml:lang, as defined in section 2.12 of the XML 1.0 Recommendation. "ENG"
would not be allowed, because the recommendation unfortunately says that
only two-letter codes from ISO 639:1988 can be used. They didn't realize
that 3-letter codes were on the horizon with ISO 639-2.

For the current lists, see:

	http://www.loc.gov/standards/iso639-2/termcodes.html

	and

	http://lcweb.loc.gov/standards/iso639-2/codechanges.html

Also understand that ISO 639:1988 2-letter codes aren't the *only* things
that be used as xml:lang attribute values. The recommendation defines
several options. But in any case, "ENG" is not currently allowed. Also
note that for a document to be valid, xml:lang has to be declared in the
DTD for the element types where it is used.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.