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: Using parameter with xsl:for-each



This is a faq, you can't in standard xsl evaluate a string as an xpath
expresion. Check the archives of this list.

> "Reference to a variable or parameter "selectpath" must evaluate to a node 
> list."

you have <xsl:value-of select="$selectpath"/>

but you passed it a string: "Resources/Resource"

so it is equivalent to

<xsl:value-of select="'Resources/Resource'"/>

David


 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]