(Type your message here)
--------------------------------
From: Aravind G
Hello all,
I have a peculiar situation.
Following is a small xml snippet in use
<ROOTNODE>
<SPSNODE>
<EXTERNALMESSAG E xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance">
<PHILIPSRIS>
<PERSON xmlns:dt="urn:s chemas-microsoft-com:datatypes">
<PATIENT>
<SERVICEEPISODE >
<ORDERENTRY>
<ORDER_STATUS dt:dt="string"> SC</ORDER_STATUS>
:
:
:
Through some mapping information I am able to get the element name (viz. ORDER_STATUS) in a variable say RISName.
The need is to get the Value of the element ORDER_STATUS. Since the element name is obtained dynamically, the exact path is not known during the program. Hence I am using the "//" expression suppported to reach the element of interst.
Below is the XSLT snippet used.
<xsl:variable name="RISValue" >
<xsl:value-of select="//$RISName"/>
</xsl:variable>
XSLT processor is throwing "Not a valid XPath expression".
1. Can any one kindly clarify if // and $ can be used in conjunction?
2. If there is any way the needed solution can be arrived.
Thanks in advance
Regards
Aravind
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>wGuVymWsVkO Nt/Jdz+2Tsw==</Id>