Subject: Re: [xsl] Using variables in xpath expression From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 19 Jul 2017 13:49:19 -0000 |
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?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using variables in xpath expr, Joseph L. Casale jca | Thread | [xsl] Mode in XSLT 3.0, Toshihiko Makita tma |
[xsl] Using variables in xpath expr, Joseph L. Casale jca | Date | Re: [xsl] XSLT program that generat, Michael Kay mike@xxx |
Month |