Subject: [xsl] Re: Grouping by attribute From: Joo Lajos <joolui@xxxxxxxxxxx> Date: Wed, 21 Oct 2009 14:24:41 +0200 (CEST) |
Hello! I have read through a couple of threads in this topic and it is really nice but how can i close inner tags with grouping. I use xslt 2.0 and managed create an xslt by your examples but stuck with it. I want to close the paragraph at every <linebreak/> tag. Here is an example: <par class="Bullet 6" xml:lang="hu"> Valami szoveg <inline style="color: #ff0000;"> Sima inline </inline> szoveg <inline style="color: #ff0000;"> inline break elott. <linebreak/> inline break utan </inline> szoveg break elott <linebreak/> szoveg break utan <inline style="color: #ff0000;"> inline bold elott <bold> inline bold break elott <linebreak/> inline bold break utan </bold> inline bold utan </inline> Sima szoveg. </par> Indenting is not too pretty but it can be seen that there are linebreaks in <par> in <par><inline> and in <par><inline><bold> I need to break up this into : <par class="Bullet 6" xml:lang="hu"> Valami szoveg <inline style="color: #ff0000;"> Sima inline </inline> szoveg <inline style="color: #ff0000;"> inline break elott. </inline> </par> <par class="Bullet 6" xml:lang="hu"> <inline style="color: #ff0000;"> inline break utan </inline> szoveg break elott </par> <par class="Bullet 6" xml:lang="hu"> szoveg break utan <inline style="color: #ff0000;"> inline bold elott <bold> inline bold break elott </bold> </inline> </par> <par class="Bullet 6" xml:lang="hu"> <inline style="color: #ff0000;"> <bold> inline bold break utan </bold> inline bold utan </inline> Sima szoveg. </par> So i have to close the tags and reopen them in the new par. It should be somehow univrsal because it can be in <underline> and so on. And another thing that opening the new <inline> or other tag the attributes should remain the same. I was thinking to create a param which "remembers" the colsed tags but could not figure out how to do it. Any help would be appreciated. Sincerely, Lajos Joo <br><br>________________________________________________________<br><a href="http://ad.adverticum.net/b/cl,1,69699,352104,434989/click.prm"> Vasaroljon Raiffiesen bankkartyajaval, most milliskat nyerhet! Riszletek a. www.raiffeisen.hu-n. </a>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Filename encoding, Florent Georges | Thread | RE: [xsl] Re: Grouping by attribute, Michael Kay |
Re: [xsl] Filename encoding, David Carlisle | Date | Re: [xsl] Grouping by attribute, Jostein Austvik Jaco |
Month |