XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Sushant PrabhuSubject: 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

Do post your suggestions on the same.


Regards,

Posttop
(Deleted User) 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?

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.