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

RE: Question about xpath

Subject: RE: Question about xpath
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Thu, 7 Oct 1999 11:53:26 -0600
localpart xpath
> > Hyphens are not allowed in variable names.
> 
> Oh yes they are.

Silly me.

"Both xsl:variable and xsl:param have a required name attribute, which
specifies the name of the variable. The value of the name attribute is a
QName, which is expanded as described in [2.4 Qualified Names]."

(QName as defined by XML 1.0):
[6]  QName ::=  (Prefix ':')? LocalPart 
[7]  Prefix ::=  NCName 
[8]  LocalPart ::=  NCName 
[4]  NCName ::=  (Letter | '_') (NCNameChar)* /*  An XML Name, minus the ":"
*/ 

I got this far and stopped reading! Variable names can't start with a
hyphen, but may contain any of them:

[5]  NCNameChar ::=  Letter | Digit | '.' | '-' | '_' | CombiningChar |
Extender 

This makes me want to make a variable named _-._.-._.-._  just for kicks.
Sorry for the misinformation.


 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.