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

Re: <xsl:if>

Subject: Re: <xsl:if>
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 08 Aug 2003 18:44:42 +0200
Re:  <xsl:if>
aAROSO Jose Antonio wrote:

<xsl:value-of select="$aname" /> <!-- The problem is here
When there are two primary keys is only print the name of the first
attribute. I can print for the first attribute key aname[1] for second
aname[2] and so on, but i didnt do it-->

The variable hold a node set. The xsl:value-of statement selects the string value, which is the text of the first node in the node set. If you want to process all nodes, use xsl:apply-templates or xsl:for-each, for example <xsl:for-each select="$aname"> <xsl:value-of select="."/> </xsl:for-each>

Somehow I suspect you'll post a follow-up question...

> -----Original Message-----
Where did the virtues of snipping unrelated old quotes go?


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

Current Thread


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.
First Name
Last Name
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.