xsl-list
[Top] [All Lists]

RE: different first element in a list

2003-02-23 11:30:35
Learn about how to do grouping at
http://www.jenitennison.com/xslt/grouping

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Lorenzo De Tomasi
Sent: 22 February 2003 21:15
To: xsl-list
Subject: [xsl] different first element in a list


I have an Xml list, for esample this list of skills:

<skills>
    <skill mark="excellent" name="excellentskill">
    <skill mark="excellent" name="excellent skill">
    <skill mark="good" name="goodskill">
    <skill mark="good" name="goodskill">
    <skill mark="basic" name="basicskill">
    <skill mark="basic" name="basicskill">
    <skill mark="excellent" name="excellentskill">
    <skill mark="good" name="goodskill">
    <skill mark="basic" name="basicskill">
</skills>

and I want to list in groups based on 'mark' attribute:

excellentskill
excellentskill
excellentskill
goodskill
goodskill
goodskill
basicskill
basicskill
basicskill

rendering only the first element of each group in a different way:

<b>excellentskill</b>
excellentskill
excellentskill
<b>goodskill</b>
goodskill
goodskill
<b>basicskill</b>
basicskill
basicskill

How can I?

What I want to obtain is an xhtml list like this

excellent skills:   excellentskill
                    excellentskill
                    excellentskill
good skills:        goodskill
                    goodskill
                    goodskill
basic skills:       basicskill
                    basicskill
                    basicskill

using <div>s or <table>s

Thank you very much for your help :) 
______________________________________________________________
______________
Lorenzo De Tomasi, student of Information Architecture, 
Interface Design and Visual Design via Bellaria 6, 21018 
Sesto Calende (Varese), Italia
phone: +39 (0)331 924649
mobile: +39 329 3941065; +39 333 8979304
e-mail: lorenzo(_dot_)detomasi(_at_)libero(_dot_)it; 
lorenzo(_dot_)detomasi(_at_)email(_dot_)it
website: http://biografica.tzone.it
ICQ uin: 11313132
Yahoo! Instant Messenger id: tummait


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list