Subject: [xsl] Help regarding xsl:for-each-group From: "J.S. Rawat jogarawat@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 26 Mar 2025 16:37:21 -0000 |
Hi All, I have generated the below output by another method in xsl version 1.0. Can we get this result by using for-each-group. INPUT <w:body> <w:p><w:pPr><w:pStyle w:val="ParaFL"/></w:pPr><w:r><w:t>Paragraph</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexentry"/></w:pPr><w:r><w:t>Entry1</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexentry"/></w:pPr><w:r><w:t>Entry2</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubentry"/></w:pPr><w:r><w:t>Subentry1</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubentry"/></w:pPr><w:r><w:t>Subentry2</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexentry"/></w:pPr><w:r><w:t>Entry3</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexentry"/></w:pPr><w:r><w:t>Entry4</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubentry"/></w:pPr><w:r><w:t>Subentry3</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubsubentry"/></w:pPr><w:r><w:t>Subsubentry1</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubentry"/></w:pPr><w:r><w:t>Subentry4</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubsubentry"/></w:pPr><w:r><w:t>Subsubentry2</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexsubsubentry"/></w:pPr><w:r><w:t>Subsubentry3</w:t></w:r></w:p> <w:p><w:pPr><w:pStyle w:val="Indexentry"/></w:pPr><w:r><w:t>Entry5</w:t></w:r></w:p> </w:body> OUTPUT <p class="textfl">Paragraph</p> <div> <idxentry id="idx1"><ie_f>Entry1</ie_f></idxentry> <idxentry id="idx2"><ie_f>Entry2</ie_f><ie_s>Subentry1</ie_s><ie_s>Subentry2</ie_s></idxentry> <idxentry id="idx3"><ie_f>Entry3</ie_f></idxentry> <idxentry id="idx4"><ie_f>Entry4</ie_f><ie_s>Subentry3</ie_s><ie_t>Subsubentry1</ie_t><ie_s>Subentry4</ie_s><ie_t>Subsubentry2</ie_t><ie_t>Subsubentry3</ie_t> <idxentry id="idx5"><ie_f>Entry5</ie_f></idxentry></idxentry> </div> thanks ...JSR
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [ANN] Version 27.1 of the Oxy, Octavian Nadolu octa | Thread | Re: [xsl] Help regarding xsl:for-ea, Michael Kay michaelk |
[xsl] [ANN] Version 27.1 of the Oxy, Octavian Nadolu octa | Date | Re: [xsl] Help regarding xsl:for-ea, Michael Kay michaelk |
Month |