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

Re: Grouping based on key result

Subject: Re: Grouping based on key result
From: Ganesh Babu N <nbabuganesh@xxxxxxxxx>
Date: Tue, 19 May 2009 09:58:59 +0530
Re:  Grouping based on key result
Dear All,

Please find my good quality sample input.

		<cross-ref refid="aff1">
		<cross-ref refid="aff2">
		<cross-ref refid="cor1">

		<cross-ref refid="aff1">

		<cross-ref refid="aff2">

		<cross-ref refid="aff3">

	<affiliation id="aff1">
		<textfn>School of Mechanical and Aerospace Engineering, Nanyang
Technological University, 639798 Singapore, Singapore</textfn>
	<affiliation id="aff2">
		<textfn>FML, Department of Engineering Mechanics, Tsinghua
University, Beijing 10084, China</textfn>
	<affiliation id="aff3">
		<textfn>The Welding Institute, Great Abington, Cambridge CB21 6AL,

The existing code is working fine for a single affiliation. If the
author is having multiple affiliations the code is not working as

Output of the code:
<author>B. Pan</author>, <author>A. Asundi</author> (Singapore)
<author>H. Xie</author> (China)  &amp; <author>J. Gao</author> (UK)

Output required:

<author>B. Pan</author> (Singapore, China), <author>A. Asundi</author>
(Singapore), <author>H. Xie</author> (China) &amp; <author>J.
Gao</author> (UK)

Please help in getting the required output.


On Mon, May 18, 2009 at 2:16 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx>
> Just trying to be helpful here...
>> <author><given-name>Anand</given-name><surname>Asundi</surname>
>> <cross-ref refid="aff1"><sup>a</sup></cross-ref></author>
>> Please help in getting the required output.
> I would normally have a look, but you haven't indented the XML so I
> pretty much instantly decide not to bother figuring out what the
> problem is...  I would recommend re-posting with good quality sample
> input.
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/

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.