This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Output one record at a time
- From: Oleg Tkachenko <olegt at multiconn dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 11 Jul 2002 10:21:10 +0200
- Subject: Re: [xsl] Output one record at a time
- Organization: Multiconn International Ltd
- References: <200207102352.AA121962570@plexiontech.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Agaram Madhavaraju wrote:
<employees>
<employee>
<name>
abc
</name>
<department>
admin
</department>
</employee>
<employee>
<name>
hij
</name>
<department>
finance
</department>
</employee>
...
...
</employees>
I want to output one employee detail at a time(in HTML), using the record number(i.e the index of employee record in the xml file) as the input parameter.
How can i do that?
What the problem exactly? Cannot transform to html or select element by index?
I cannot help you with the first, you are the only man who knows how e.g.
<name> should looks like in html, but second one is simple:
<xsl:apply-templates select="/employees/employee[$index]"/>
--
Oleg Tkachenko
Multiconn International, Israel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list