RE: Multiple Rows in a Table / Same Element
> > I am trying to create a Calendar table with a new row after > every 7th day. > Look in the FAQ under grouping. The basic principle is to structure template rules according to the output structure, not the input structure. You want a rule that generates a <week> element containing seven <day> elements? Write it like this: <xsl:template match="day[position() mod 7 = 0]"/> <week> <xsl:for-each select=". | following-sibling::day[position() < 7]"> <day><xsl:value-of select="@date"/></day> </xsl:for-each> </week> </xsl:template> <xsl:template match="day"/> <!-- ignore the other days --> Mike Kay 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