[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: first-of-type
Found the answer! (perhaps this is a good FAQ) ? <xsl:template match="y"> <tr><td> <xsl:if test="not(preceding-sibling::reference)"> y </xsl:if> </td><td> <xsl:value-of select="."/> </td></tr> </xsl:template> Nice. I'm impressed. ;) Clark On Sat, 2 Oct 1999, Clark C. Evans wrote: > 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> > 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
|