[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Ancestors and Imported docs
Oh (Eric), I forgot to add....
<xsl:variable name="number" select="count(link)"/> Is kind of odd. For one, check out the last() function -- means you don't need that $number variable. Also, could (should) be an xsl:choose since they're exclusive conditions. Or, more simply: <xsl:for-each select="link"> <a href="{@href}" style="color:#{$color}"><xsl:value-of select="."/></a> <xsl:if test="position() != last()"> <xsl:text> | </xsl:text> </xsl:if> </xsl:for-each> See what I mean? :-> Cheers, Wendell
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
|