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

RE: How to retrieve value(which is copied into RTF as

Subject: RE: How to retrieve value(which is copied into RTF as a variable) from RTF
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 4 Jan 2005 13:34:19 -0000
retrieve .rtf
$nameval is an attribute node called name, so in place of <xsl:value-of
select="."> you need <xsl:value-of select="@name"/>.

Remember that for debugging you can do

<xsl:message><xsl:copy-of select="$professionalLevel"/></xsl:message>

which would have immediately revealed what's going on here.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Ranjan K. Baisak [mailto:ranjanbaisak@xxxxxxxxx] 
> Sent: 04 January 2005 13:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How to retrieve value(which is copied into RTF 
> as a variable) from RTF
> 
> I have a RTF with following declaration
> <xsl:variable name="professionLevel"> 
> 		<xsl:for-each select="//profession">
> 			<xsl:variable name="nameval" select="@name"/>
> 			<xsl:variable name="parentval" 
> select="@parent"/>
> 			<xsl:for-each
> select="exslt:node-set($leverreference)/*">
> 				<xsl:variable name="referid" 
> select="@levelref"/>
> 				<xsl:if test="$referid=$parentval">
> 					<xsl:copy>
> 						<xsl:copy-of 
> select="$nameval"/>
> 					</xsl:copy>
> 				</xsl:if>
> 			</xsl:for-each>
> 		</xsl:for-each>
> 	</xsl:variable>
> 
> Later I want to retrieve $nameval from professionLevel
> RTF.
> I tried with
> <xsl:for-each
> select="exslt:node-set($professionLevel)/*">
> 		<xsl:value-of select="."/>
> 	</xsl:for-each> 
> but it did not work. 
> Any suggestion?
> 
> regards,
> Ranjan
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Send holiday email and support a worthy cause. Do good. 
> http://celebrity.mail.yahoo.com

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.