Subject: Re: [xsl] Grouping multiple tags into one parent tag From: Chad Chelius <cchelius@xxxxxxxxxx> Date: Sun, 15 Feb 2009 13:11:47 -0500 |
Chad Chelius Adobe Certified Instructor Adobe Certified Expert AGI Training cchelius@xxxxxxxxxx
See me at the CRE8 Conference www.CRE8summit.com April 15-16 at the Walt Disney World Resort
Re-reading your post, perhaps you meant the following:
<xsl:template match="body"> <xsl:if test="not(preceding-sibling::body)"> <field name="body"> <xsl:for-each select="../body"> <p> <xsl:apply-templates/> </p> </xsl:for-each> </field> </xsl:if> </xsl:template>
This would produce:
<field name="body"> <p>content here</p> <p>content here</p> <p>content here</p> </field>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Grouping multiple tags in, G. Ken Holman | Thread | Re: [xsl] Grouping multiple tags in, G. Ken Holman |
Re: [xsl] Grouping multiple tags in, G. Ken Holman | Date | RE: [xsl] Grouping multiple tags in, Michael Kay |
Month |