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

When first Node add a style in XSL

Subject: When first Node add a style in XSL
From: "Dan Acuff" <dacuff@xxxxxxxxxxxxxx>
Date: Fri, 16 May 2008 09:50:41 -0400
 When first Node add a style in XSL
How do I put the proper test in for the first Node I encounter, add a
top border:?

    <xsl:template match="category">
            <xsl:when test="first::category">
                <xsl:element name="h3">
                    <xsl:attribute name="style">border-top:
                    <xsl:value-of select="@display_name"/>
                <xsl:element name="h3">
                    <xsl:value-of select="@display_name"/>

Current Thread


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.
First Name
Last Name
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.