[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Using variables in xpath expression
I have several templates with similar code to the following: <xsl:template match="wix:Component[wix:File[substring(@Source, string-length(@Source) - 7) = 'MyString']]"> I want to substitute 'MyString' with a variable and the 7 with a "string-length($var) -1" however the processor complains about the usage of a variable. This is xsl 1 with msxsl. Is there any way around this so I can avoid hardcoding the string? Thanks, jlc
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|