[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Limiting a row to four items
Are you looking for an XSLT 1 solution?
In XSLT 2 or 3, you can do, when in stamp context: <xsl:for-each-group select="plate" group-adjacent="(@number - 1) idiv 4">, and create a row for each group. If you tune the .block width so that 4 of them fit into a .row, you can also set flex-wrap:wrap in .row, then you need not create div.row at all. Gerrit On 28.08.2020 10:44, Mark Wilson mark@xxxxxxxxxxxx wrote: This is likely in the archives but I have forgotten how to use them. Among the other things I have forgotten since I turned 80 is how to a put set of elements into rows for HTML output. I want to put what four <plate> elements conjure into each row; the number of< plate> elements in each <stamp> element varies. The <plate> element references the identity of a jpeg that will be put on the page. I want four jpegs in each row.
|
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
|