[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: first-of-type

Subject: RE: first-of-type
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 4 Oct 1999 17:12:16 +0100
first of type
> BTW, it seems that these predicates (first-of-type/last-of-type)
> are horribly useful, why did they get nuked?

One of the reasons was that you couldn't pair them up properly:

<xsl:if test="first-of-type()">
	<TABLE>
</xsl:if>
<TR><xsl:apply-templates/></TR>
<xsl:if test="last-of-type()">
	</TABLE>
</xsl:if>

This fails for obvious reasons!
This is what led me to the invention of the saxon:group construct:

<saxon:group group-by="name()">
<TABLE>
   <saxon:item>
   <TR><xsl:apply-templates/></TR>
   </saxon:item>
</TABLE>
</saxon:group>

Mike Kay


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.