[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: avoiding assignment statements
Subject: Re: avoiding assignment statements
From: "Sam Carleton" <scarleton@xxxxxxxxxxxxxxxx>
Date: Fri, 8 Dec 2006 09:40:59 -0500
|
On 12/8/06, David Carlisle <davidc@xxxxxxxxx> wrote:
xslt works rather better if you have structured input rather than a fixed
set of flat variables. If you had a parameter show that took a list of
elements say <Replicates/><Metadata/> then you could just do
<xsl:for-each select="$show">
<xsl:if test="position()!=1">, </xsl:if>
<xsl:apply-templates select="."/>
</xsl:for-each>
where templates matching Replicates would do whatever your pseudo code
Output("Reps") does.
Cool, I knew there would be a logical way! Thanks!
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|