[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Question about xpath


Subject: RE: Question about xpath
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Thu, 7 Oct 1999 11:53:26 -0600

> > 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
Keywords
xml