Subject: [xsl] Limiting a row to four items From: "Mark Wilson mark@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 28 Aug 2020 08:44:14 -0000 |
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.
.row { B width: 100%; B display: flex; B flex-direction: row; B justify-content: center; }
My input XML is a long list of <stamp> elements with <plate> children. .... <stamp > B B B B B B B B B B B B B B B <plate number="1"/> B B B B B B B B B B B B B B B <plate number="2"/> B B B B B B B B B B B B B B B <plate number="3"/> B B B B B B B B B B B B B B B <plate number="4"/> B B B B B B B B B B B B B B B <plate number="5"/> B B B B B B B B B B B B B B B <plate number="6"/> B B B B B B B B B B B B B B B <plate number="7"/> B B B B B B B B B B B B B B B <plate number="8"/> </stamp> ....
Works fine for four or fewer <plate> elements, but more than that makes a mess Any help appreciated, Mark
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: [saxon] How can an empty , Michael Kay mike@xxx | Thread | Re: [xsl] Limiting a row to four it, Imsieke, Gerrit, le- |
[xsl] Re: [saxon] How can an empty , Michael Kay mike@xxx | Date | Re: [xsl] Limiting a row to four it, Imsieke, Gerrit, le- |
Month |