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

Re: Noob: how to use "for each" in this context?

Subject: Re: Noob: how to use "for each" in this context?
From: "Barry van Weldam" <barry@xxxxxxx>
Date: Wed, 17 Sep 2003 11:46:57 +0200
in this context
Hi,

How do i get a node name, because my xml-nodes doesn't exactly have the names like node1, node2 etc So i can fix this
--------------------------------------------------------------
<xsl:template name="cell">
<xsl:param name="counter" select="1"/>
<xsl:param name="max" select="12"/>
<fo:table-cell border="solid black 1 px" border-collapse="collapse">
<fo:block>
<xsl:variable name="cell" select="*[name() = concat('node', $counter)]"/>
<xsl:choose>
<xsl:when test="not($cell = 'null')">
<xsl:value-of select="$cell"/>
</xsl:when>
</xsl:choose>
</fo:block>
</fo:table-cell>
-----------------------------------------------------------

i have tried
<xsl:variable name="cell" select="*[name()]"/>

but then only 1 row is displayed

and could anyone explain to me what this is select="*[

i know name() = node1 node2 etc.

So just the *






 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.