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

FW: newbie - comparing attributes in nodes

Subject: FW: newbie - comparing attributes in nodes
From: "Hesselberth, Jan" <Jan.Hesselberth@xxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Jan 2002 17:05:18 -0000
 FW: newbie - comparing attributes in nodes
OK I sorted it - needed <xsl:if
Sorry to bother you.

>  -----Original Message-----
> From: 	Hesselberth, Jan  
> Sent:	16 January 2002 16:51
> To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:	newbie - comparing attributes in nodes
> I have the following xml:
> <Report>
> <printCategory ID="20"><TranName>FURTHER
> ADVANCE</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCateg
> ory>
> <printCategory ID="20"><TranName>INITIAL
> DRAWDOWN</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCate
> gory>
> <printCategory ID="20"><TranName>RETENTION
> RELEASE</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCateg
> ory>
> <printCategory ID="21"><TranName>INTEREST
> ADJUSTMENT</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCa
> tegory>
> <printCategory ID="21"><TranName>INTEREST ADJUSTMENT
> (CREDIT)</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCate
> gory>
> <printCategory ID="21"><TranName>INTEREST
> CHARGED</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCateg
> ory>
> <printCategory ID="21"><TranName>REDEMPTION INTEREST
> CHARGED</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCateg
> ory>
> <printCategory ID="22"><TranName>ARRANGEMENT
> FEE</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCategory>
> <printCategory ID="22"><TranName>FIXED RATE BOOKING
> FEE</TranName><CRAmount>0</CRAmount><DRAmount>0</DRAmount></printCategory>
> </Report>
> Each time the printCategory ID changes I need to output a heading.
> I tried to follow the examples in the book and came up with variants as
> below but none work. Can someone please help?
> <xsl:for-each select="/Report/printCategory">
> 			<xsl:if
> test="not(@ID=preceding::printCategory/@ID)">
> 			<fo:table-row>
> 				<fo:table-cell>
> 					<fo:block>Print Category
> <xsl:value-of select="@ID"/></fo:block>
> 				</fo:table-cell>
> 			</fo:table-row>
> 			</xsl:if>
> Thanks in advance
> Jan
The information contained in this e-mail and any files transmitted with it 
is private and confidential. It is intended for the named addressee only. 
If you are not the intended addressee you are prohibited from 
storing, copying or using the information in any way. 
If you received this e-mail due to a transmission error please notify the 
sender immediately. No liability is accepted by Northern Rock 
for any losses caused by viruses contracted during transit 
over the Internet or present in any receiving system. 
This e-mail is not intended to create legally binding commitments on 
behalf of Northern Rock plc, nor do its contents reflect the corporate 
views or policies of Northern Rock plc. 

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

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.