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

creating criterions to group

Subject: creating criterions to group
From: Marcos Hercules dos Santos <mhercules@xxxxxxxxx>
Date: Sun, 20 Feb 2005 16:51:03 -0300
criterions
Hi, I'm still working with grouped elements and my structure grow up,
demanding every time more and more

I'm still applying this  sample to count elements

<xsl:value-of select="count(car[generate-id(.) =  
 generate-id(key('by-model',isbn)[1])])" />

Remember this, my  XML structure:  

<cars> 
    <car> 		<model>V667320</model>
 		<name>Sportage</name>
                 <categ>sport</categ>
                  <color>grey</color>
                  <year>1999</year>
    </car>
    <car>
 		<model>M382932</model>
 		<name>Silverado</name>
                <categ>pick-up</categ>
                  <color>white</color>
                  <year>20001</year>
  </car>
  <car>
 		<model>L930389</model>
 		<name>Jaguar</name>
                 <categ>Sport</categ>
                  <color>red</color>
                  <year>1997</year>
   </car>
   <car>
 		<model>V667320</model>
 		<name>Sportage</name>
                 <categ>sport</categ>
                  <color>green</color>
                  <year>1999</year>
   </car>
 </cars>


My question  I don't know if xsl:key allows to select a element and a
predicate or anything similar. I've been trying to group the cars from
same model and now using intervals of years
to display a report,

some like this


model              1981-1985    1986-1990   1991-1995   1996-200

sportage                                                              
         1

Jaguar                                                                
           1


Can you instruct me ?

Thanks

Marcos Hercules dos Santos.

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-2013 All Rights Reserved.