Subject:get the xsl value of syntax from an external file Author:Sushant Prabhu Date:17 Jan 2007 06:43 PM
Hi All,
Currently I am writing an xsl where i have a lot of <xsl:value-of select> statements.
This is the xml i need to trap in my xslt.
<Root Parent>
<Parent>
<Child>
TestRun
</Child>
</Parent>
</Root Parent>
I want to acutally get the value (Test Run) in the above case.
The hierarchial structure for the same is
<xsl:value-of select="Root Parent/Parent/Child"/>
I have many such values to extract & in some the node levels are over 5.
Something like
/catalog/cd/country/company/title
/catalog/cd/country/company/artist
/catalog/cd/country/company/title/price
/catalog/cd/country/company/title/year
Now I want to externalise all these in a separate file as constant values.
& then just fetch that value in the my main xsl file something like this.
title =/catalog/cd/country/company/title
artist=/catalog/cd/country/company/artist
price=/catalog/cd/country/company/title/price
Subject:get the xsl value of syntax from an external file Author:(Deleted User) Date:19 Jan 2007 04:19 AM
What you want to achieve can only be done using non-standard functions that parse XPath expressions generated at runtime. What is your environment? Which version of Stylus are you using?