[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] RE: FO - How to group and sort in XSL:FO on a sibling values


Subject: [xsl] RE: FO - How to group and sort in XSL:FO on a sibling values
From: Chris Booth <Chris.Booth@xxxxxxxxxxxxxxxx>
Date: Thu, 13 Dec 2012 11:27:39 +0000

I have this data:

Lines
	Line
		Item
			ItemGroup = ABC
	Line
		Item
			ItemGroup = DEF
	Line
		Item
			ItemGroup = ABC
	Line
		Item
			ItemGroup = GHI


I have the logic to (appear to) sort

Lines
	Line
		Item
			ItemGroup = ABC
	Line
		Item
			ItemGroup = ABC
	Line
		Item
			ItemGroup = DEF
	Line
		Item
			ItemGroup = GHI


However, it's not a true sorted list as the XML is still in the orginal order,
therefore the the preceding-sibling does not match what the sorted list is
showing and I then can't say if the the GroupCode is the same don't display
the Code, only the other Line data.

Cheers


-----Original Message-----
From: Chris Booth [mailto:Chris.Booth@xxxxxxxxxxxxxxxx]
Sent: Thursday, December 13, 2012 10:31 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] XSL:FO - How to group and sort in XSL:FO on a sibling values

Hi,

 I am after a little (actually a lot ) bit guidance and help please.

I am struggling with Axis on the Xpath and how to group and sort.

 Using XSL:FO (1.0 on Xalan) I need to be able to group parts of my data
together and not show them where the match other entries


Current Thread
Keywords