Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] How to retrieve value(which is copied into RTF as a variable) from RTF >Thread Next - [xsl] Usage of key inside a for loop of a RTF does not work properly RE: [xsl] How to retrieve value(which is copied into RTF as a variable) from RTFTo: Date: 1/4/2005 1:35:00 PM $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: [xsl] 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
