|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] first-of-type
Hello. I'm looking for the replacement for
the 'first-of-type' predicate.
Input:
<p>
<x> content for first x </x>
<y> content for first y </y>
<y> content for second y </y>
<z> content for first z </z>
<p>
I'd like output:
<table>
<tr><td>x</td><td>content for first x </td></tr>
<tr><td>y</td><td>content for first y </td></tr>
<tr><td> </td><td>content for second y </td></tr>
<tr><td>z</td><td>content for first z </td></tr>
</table>
I can generate <table> and </table> on a template
for <p>. Also, I seem to be able to do special
things for x and z using first() and last(). However,
I can't figure out how to differentiate between the
first y and the second y.
BTW, it seems that these predicates (first-of-type/last-of-type)
are horribly useful, why did they get nuked?
Thanks!
Clark Evans
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








