Subject: RE: [xsl] variable in document XPath From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Sat, 9 Mar 2002 15:08:05 -0000 |
> > <xsl:template name="nav"> > <xsl:for-each select="document('foo.xml')$path"> > ... > </xsl:for-each> > </xsl:template> > > -- > > Can a variable be placed in the XPath portion of the > document() function? > No. Variables in XPath are not macros. They represent values, not parts of an expression. You can use a variable reference in the same places within an expression that you can use a function call. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] variable in document XPat, Peter Davis | Thread | [xsl] 𡁀 coming out as ?, Randy Belknap |
RE: [xsl] xsl:with ?, Michael Kay | Date | [xsl] last() problem, Richard Hallgren |
Month |