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

Conformance question: May variable names start with "x

Subject: Conformance question: May variable names start with "xml"? (Also: MSXML3 bug)
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Wed, 23 May 2001 12:31:03 -0700
names that start with x
>From XSLT spec:
"The name of an internal XSLT object...is specified as a QName"[1]

>From XML Namespaces spec:

QName ::=  (Prefix ':')? LocalPart
Prefix ::=  NCName
LocalPart ::=  NCName
[2]

and

NCName ::=  (Letter | '_') (NCNameChar)*    /* An XML Name, minus the ":" */
[3]

and

"Prefixes beginning with the three-letter sequence x, m, l, in any case
combination, are reserved for use by XML and XML-related specifications."[4]

>From XML spec:

"Names beginning with the string "xml", or any string which would match
(('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or
future versions of this specification."[5]

The question is: Is leading "xml" allowed in the local part of QNames used
for "internal XSLT objects"? Or can the last quote above be interpreted as
applying to element and attribute names only, but not the Name production
itself? I assume this is how current XSLT implementors are interpreting it.

On a related note, MSXML3 chokes on variables that are named "xmlns", though
it doesn't seem to have a problem with other leading-"xml" names.

Evan Lenz
XYZFind Corp.

[1] http://www.w3.org/TR/xslt#qname
[2] http://www.w3.org/TR/REC-xml-names#NT-QName
[3] http://www.w3.org/TR/REC-xml-names/#NT-NCName
[4] http://www.w3.org/TR/REC-xml-names/#xmlReserved
[5] http://www.w3.org/TR/REC-xml#NT-Name


 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.