[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] for-each-group not working
Subject: RE: [xsl] for-each-group not working From: "V.Ramkumar" <v.ramkumar@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 24 Nov 2008 18:18:13 +0530 |
No index is the part of common attribute value for 3-levels. Primary/secondary/tertiary like index. Based on the this only I am checking. Regards, Ramkumar -----Original Message----- From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx] Sent: Monday, November 24, 2008 5:06 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] for-each-group not working > I am using saxon9 for xml transformation. In this, for-each-group not > working fine. So please anyone find my errors. :) > My HTML (input), > <html> > <body> > <p class="indexmain"><em>Slogan main</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexmain"><em>Slogan main</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexsecond"><em>Slogan</em> 158</p> > <p class="indexmain"><em>Slogan main</em> 158</p> > </body> > </html> > ><xsl:for-each-group select="*" group-starting-with="p[contains(@class,'index')]"> You have: group-starting-with="p[contains(@class,'index')]" but that's true for all of them, so I think you meant: group-starting-with="p[contains(@class,'indexmain')]" -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] for-each-group not workin, Andrew Welch | Thread | Re: [xsl] for-each-group not workin, Vasu Chakkera |
Re: [xsl] for-each-group not workin, Andrew Welch | Date | Re: [xsl] for-each-group not workin, Vasu Chakkera |
Month |
Keywords