[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Is this possible in xsl ?


Subject: [xsl] Is this possible in xsl ?
From: "Anne Rebier" <rebier@xxxxxxxxxxx>
Date: Fri, 10 Aug 2001 10:36:19 +0000

Hi.

I want to transform an xml to an html.

My xml looks like this:

<cap>
 <cap>
   <cap>
	<data>
         <org>Organism1</org>
         <info> ...</info>
       </data>
   </cap>
   <data>
      <org>Organism2</org>
      <info> ...</info>
   </data>
 </cap>
</cap>

And I want my html to look like this:
Organism 1
	cap
		cap
			data1
Organsim 2
	cap
		data2

So the data is in the xml sorted in the capfiles with the info to which cap it belongs, but in the html I want it to sort by organism. Is this possible?
I tried to do it with <xsl:for-each select="//organism"> but it doesn't work at all, all the organsims are repeated.


Thank you for your ansers.

Anne.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




Current Thread
Keywords
xml