[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How can i convert the variable value into xpath

Subject: Re: How can i convert the variable value into xpath
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Fri, 08 Mar 2002 09:40:44 +0000
xpath variable value
hi gurpreet,
if i understand the problem coreectly,
your xml file looks like
<a>
<c>
Text in C Node
</c>

</a>

and u want to write xpath expression to get c text

try running the xsl in the following way

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:variable name="var" select="//a/c"/>
<xsl:value-of select="$var"/>
</xsl:template>
</xsl:stylesheet>



Well, this is what i understod and it looks fairly simple. please let me know if this is not your problem , in which case please give a sample xml file and a sample output.
regards
laura


From: Gurpreet Singh <gpsingh@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  How can i convert the variable value into xpath
Date: Thu, 7 Mar 2002 09:37:44 +0530


> Hi, > How can i convert the variable value into xpath ?? > e.g . a variable var has value //a/c > now if i write <xsl:value-of select="$var"/> > i am getting the value //a/c and not the value of xpath //a/c. > > > > Gurpreet Singh > QUARK Media House (I) Pvt. Ltd. > A-45, Indl Area, Phase VIII-B, > Mohali-160059. > Tel : +91.172.257801-16(O) Ext : 9550 > +91.172.569799(R) > Fax : +91.172.257414 > E-Mail : gpsingh@xxxxxxxxxxx <mailto:gpsingh@xxxxxxxxxxx> > >

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.