[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using for-each-group on a <day> collection to arra
On 07.11.2017 19:03, Michael Friedman sumarimike@xxxxxxxxx wrote:
I am struggling with taking a collection of <day> elements and formatting them in groups of 5, to simulate a weekday calendar in PDF output. I've looked through the archives and not been able to find anything that gets me further than where I am stuck. <xsl:template match="course"> The usual approach with positional grouping is by <xsl:for-each-group select="descendant::day" group-adjacent="(position() - 1) idiv 5"> <xsl:sort select="position()" order="ascending" data-type="number"/> Not sure what sorting groups by ascending position is supposed to achieve. <fo:table-row height="15pt" background-color="gray" border-top="1pt solid black">
|
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
|