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

Re: lang() function and ISO 639

Subject: Re: lang() function and ISO 639
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 8 Jun 2000 17:33:23 -0600 (MDT)
iso 639 download
> 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 

XML 1.0 only allows xml:lang attributes to use 2-letter codes from ISO
639 or certain codes beginning with "i" or "x", due to the normative
reference to RFC 1766, which imposes those restrictions. ISO 639 is now
639-1 and 639-2, but these developments were not anticipated when the RFC
and the XML spec were written. The reference to ISO 639 in RFC 1766 is to
ISO 639:1988, first edition, which doesn't have the 3-letter codes
defined in 639-2. It's also missing a number of 2-letter codes that have
been added to 639-1.

> 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?

Yes. From http://www.w3.org/TR/REC-xml-names/

"The namespace prefix, unless it is xml or xmlns, must have been
declared ... The prefix xml is by definition bound to the namespace name
http://www.w3.org/XML/1998/namespace."

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 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.