M
Murtaza Tinwala
Hi mates,
I have the following problem in XSLT. I have following variables:
ref-file = <path of XML document> eg "xmlDoc.xml"
repeatpath = <a repeat path expressed in Xpath like /root/person > eg
"/root/person"
node = <name of a child node in repeat path> eg" "name"
Now, I want to get to the 'node' in XSLT using Xpath.
Suppose, the following is the XML document.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<person>
<name>Murtaza</name>
</person>
<person>
<name>Rishit</name>
</person>
<person>
<name>Nilesh</name>
</person>
<person>
<name>Chirag</name>
</person>
</root>
I can get the XML document into a variable using document() function.
Now, my problem is I have Xpath expressions in string form. I cannot
use them where we have to use XSLT patterns and Xpath expressions.
How to solve this problem?
Murtaza Tinwala.
I have the following problem in XSLT. I have following variables:
ref-file = <path of XML document> eg "xmlDoc.xml"
repeatpath = <a repeat path expressed in Xpath like /root/person > eg
"/root/person"
node = <name of a child node in repeat path> eg" "name"
Now, I want to get to the 'node' in XSLT using Xpath.
Suppose, the following is the XML document.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<person>
<name>Murtaza</name>
</person>
<person>
<name>Rishit</name>
</person>
<person>
<name>Nilesh</name>
</person>
<person>
<name>Chirag</name>
</person>
</root>
I can get the XML document into a variable using document() function.
Now, my problem is I have Xpath expressions in string form. I cannot
use them where we have to use XSLT patterns and Xpath expressions.
How to solve this problem?
Murtaza Tinwala.