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

[no subject]

[no subject]
ID | AUTHOR | NEXT | PREVIOUS
-----------------------------
13 | CA     | 45   | *
45 | CA     | 12   | 13
12 | GE     | 5    | 45
5  | MA     | 3    | 12
3  | MB     | *    | 5

Table must be sorted first by Author and then by ID
Next and Previous columns contain the ID of the next/previous document

How is it possible using XSLT1.0 and only one XSLT?

Source XML is:

------------
<?xml version="1.0" encoding="UTF-8"?>
<ALL_DOCUMENTS>
	<DOCUMENT>
		<ID>3</ID>
		<AUTHOR>MB</AUTHOR>
	</DOCUMENT>
	<DOCUMENT>
		<ID>5</ID>
		<AUTHOR>MA</AUTHOR>
	</DOCUMENT>
	<DOCUMENT>
		<ID>45</ID>
		<AUTHOR>CA</AUTHOR>
	</DOCUMENT>
	<DOCUMENT>
		<ID>13</ID>
		<AUTHOR>CA</AUTHOR>
	</DOCUMENT>
	<DOCUMENT>
		<ID>12</ID>
		<AUTHOR>GE</AUTHOR>
	</DOCUMENT>
</ALL_DOCUMENTS>
------------

Thanks,
Benoit

---------------------------------------------------------
Legal Notice: This electronic mail and its attachments are intended solely for
the person(s) to whom they are addressed and contain information which is
confidential or otherwise protected from disclosure, except for the purpose
for which they are intended. Dissemination, distribution, or reproduction by
anyone other than the intended recipients is prohibited and may be illegal. If
you are not an intended recipient, please immediately inform the sender and
return the electronic mail and its attachments and destroy any copies which
may be in your possession. UCB screens electronic mails for viruses but does
not warrant that this electronic mail is free of any viruses. UCB accepts no
liability for any damage caused by any virus transmitted by this electronic
mail.
---------------------------------------------------------

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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