is it possible to replace a node in an xpath with a variable?
My scenario is as follows...
I have the following xpath
Code:
/Properties/Data/Result/Externals/DcrContent/PressRelease/title
However, I would like to pass the title node in to the xpath via a variable.
i.e.
Code:
<xsl:variable name="desc" select="substring-after(Description,'*')"/>
I tried this -
Code:
/Properties/Data/Result/Externals/DcrContent/PressRelease/$desc
but I'm getting the following error
mMessage[A relative location path was expected following the '/' or '//' token.]
Thanks.