This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: variable in document XPath


>
> <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@ntlworld.com
work: Michael.Kay@softwareag.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]