Subject: first-of-type From: "Clark C. Evans" <clark.evans@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 2 Oct 1999 19:09:00 -0400 (EDT) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Generating Elements with variab, Chris Holmes | Thread | Re: first-of-type, Clark C. Evans |
RE: meaning of "contain" in the XSL, Mike Brown | Date | Re: first-of-type, Clark C. Evans |
Month |