|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: fixed position
<xsl:template match="item">
<xsl:if test="position() = 4">
<xsl:text>Solution</xsl:text>
</xsl:if>
<xsl:if test="not(. = 'Solution')">
<xsl:value-of select="." />
</xsl:if>
 
</xsl:template>This is a somewhat hokey way to do it, but if you can assume 1) That a "Solution" node will ALWAYS show up in your data, and 2) There will ALWAYS be four or more nodes, then it works fine. Otherwise, you could copy a result tree fragment into a variable, and switch the elements around so that Solution is 4th, and then iterate through that. I know there must be a better way to do it, but I can't think of one right now. Anyone else? -Kevin From: James Melton <james.melton@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: fixed position Date: Wed, 01 Aug 2001 13:58:52 -0400 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp 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
|

Cart








