[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Grouping by attribute

Subject: Re: Grouping by attribute
From: Joo Lajos <joolui@xxxxxxxxxxx>
Date: Wed, 21 Oct 2009 14:24:41 +0200 (CEST)
 Re: Grouping by attribute
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.