|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Grouping for noobs
Tempore 16:04:43, die 01/26/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Wade Turland
<Wade.Turland@xxxxxxxxxxxx>:
I have this XML:Hi, Try something like this: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:text="t"> <xsl:output indent="yes"/> <xsl:template match="text:p"/> <xsl:template match="text:p[@text:style-name='Normal'][following-sibling::text:p]"> <verbose> <xsl:apply-templates select="." mode="group"/> </verbose> </xsl:template> <xsl:template match="text:p" mode="group"> <xsl:apply-templates/> <xsl:text> </xsl:text> <xsl:apply-templates select="following-sibling::text:p[1][@text:style-name='Preformatted Text']" mode="group"/> </xsl:template> </xsl:stylesheet> regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Vincit omnia simplicitas Keep it simple
|
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
|

Cart








