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

lang() function and ISO 639

Subject: lang() function and ISO 639
From: John Robert Gardner <jrgardn@xxxxxxxxx>
Date: Thu, 8 Jun 2000 17:44:21 -0400 (EDT)
function of iso
I was looking over the lang() function in XPath under the boolean core
function group (spec. 4.3) and wondered if there was a problem between the
2-letter ISO 639 spec, and the  ISO 639-2:1998 which sets three-letter
codes (http://www.indigo.ie/egt/standards/iso639/iso639-2-en.html).  I
checked Kay's book, and he notes on p. 474 that ". . . if the context node
is the element <para xml:lang="fr-CA"> (indicating Canadian French), then
the expression "lang('fr')" would return true."  Some of the 3-letter
characters--I was once told--in  ISO 639-2:1998 are not similar to allow a
match with just two characters as the spec seems to call for.  I will
double check for incompatible languages, b/c I confess I'm asking this
partly on heresay. 

The xml:lang attribute that is checked by lang() must be declared as such,
just as the case with xml:space, correct?  The QName does not need a
separarte namespace declaration b/c xml: is a default namespace for xml
instances, right?  I'd only need to add that attribute, by my
understanding, yes?

jr

=-=-=-=-=-=-=-=-=-==-=-=-=
John Robert Gardner, Ph.D.
XML Engineer
Emory University
------------------------------------------------------------
http://vedavid.org/diss/
"There is a difference between knowing The Path, and walking the Path."
					-Lawrence Fishburn/Morpheus


 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.