Hi all,
I want to access one XML which has a xpath of another XML where I
should bind data in XSL.
test.xml
<button >
<id>btn1</id>
<x>225</x>
<y>450</y>
<paths>document('a.xml')/catalog/title</paths>
</button>
a.xml
<catalog>
<title>History</title>
<year>1987</year>
<catalog>
My target XSL which produces output correctly
<xsl:for-each select="button">
<button id="{id}" type="button"
style="position:fixed;top:{y}px;left:{x}px;">
<xsl:value-of select="document('a.xml')/catalog/title"/>
</button>
</xsl:for-each>
My current XSL which gives wrong output which is the path as the value
of the button
<xsl:for-each select="button">
<button id="{id}" type="button"
style="position:fixed;top:{y}px;left:{x}px;">
<xsl:value-of select="path"/>
</button>
</xsl:for-each>
How can I achieve my target?Any ideas are welcome.Thank you.
Sanjaya Liyanage
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--