Subject: RE: Can solve the N-queens - but can't count! From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 18 Jun 1999 12:20:20 +0100 |
> > > > <xsl:apply-templates select="$var/a[@b='x']" /> > > > >or > > <xsl:value-of select="$var/a" /> > > It happens that neither of the above is a valid pattern > because variables cannot be used *as* location steps. They are not valid patterns but they are valid node-set expressions, and therefore valid in this context. [18] PathExpr ::= FilterExpr / RelativeLocationPath [19] FilterExpr ::= PrimaryExpr [14] PrimaryExpr ::= VariableReference (But they are not valid, following the thread further back, if $var is of type document fragment. Section 6.2.2 says: The "/" operator combines an arbitrary expression and a relative location path. It is an error if the expression does not evaluate to a node-set.) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Can solve the N-queens - but ca, Jonathan Borden | Thread | Re: Can solve the N-queens - but ca, Oren Ben-Kiki |
Re: splitting into separate files a, Sebastian Rahtz | Date | RE: splitting into separate files a, Kay Michael |
Month |