[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to group same type nodes together?
Hi Rick,
At 04:47 PM 12/23/2003, you wrote: If I have a xml file: Following the question in your subject line, not your example (in which the result has two child1 elements not grouped), try <xsl:template match="parent"> <xsl:apply-templates select="child1"/> <xsl:apply-templates select="child2"/> <xsl:apply-templates select="child3"/> </xsl:template> <xsl:template match="child1|child2|child3"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|