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

Re: Grouping multiple tags into one parent tag

Subject: Re: Grouping multiple tags into one parent tag
From: Chad Chelius <cchelius@xxxxxxxxxx>
Date: Sun, 15 Feb 2009 13:11:47 -0500
Re:  Grouping multiple tags into one parent tag
Thank you all for your responses. Ken this is exactly what I was trying to do! The only thing is, I am also using:

<xsl:output method="xml" cdata-section-elements="field"/>

To wrap the contents of the field element in a cdata tag. After using the template rule that you provided, that cdata-section-element no longer works. I'm not sure why.


Chad Chelius
Adobe Certified Instructor
Adobe Certified Expert
AGI Training

See me at the CRE8 Conference
April 15-16 at the Walt Disney World Resort

On Feb 15, 2009, at 1:03 PM, G. Ken Holman wrote:

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">

This would produce:

 <field name="body">
   <p>content here</p>
   <p>content here</p>
   <p>content here</p>

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.