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]

RE: parameter in path


> is it possible to use a paramter in the path of the select of 
> a xsl:value-of ?
> 
> <xsl:param name="p1" select="'abc">
> <xsl:value-of select="//some1/$p1/some2"/>
> 
Third time in a week! No, variables and parameters in XPath don't work by
textual substitution. A variable can only be used in places where the syntax
explicitly permits it. There is no mechanism in XSLT 1.0 to construct an
expression from a string.

Mike Kay


 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]