[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: Mon, 18 May 2009 12:33:52 +0530
Re:  Grouping based on key result
Hai All,

The given code is not working for the below input because of the input


<cross-ref refid="aff1"><sup>a</sup></cross-ref>
<cross-ref refid="aff2"><sup>b</sup></cross-ref>
<cross-ref refid="cor1"><sup>&#x204E;</sup></cross-ref>

<cross-ref refid="aff1"><sup>a</sup></cross-ref></author>

<cross-ref refid="aff2"><sup>b</sup></cross-ref></author>

<cross-ref refid="aff3"><sup>c</sup></cross-ref></author>

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

The existing code is working for 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 Fri, Mar 6, 2009 at 6:20 PM, G. Ken Holman
<gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> At 2009-03-06 07:47 -0500, I wrote:
>> I also took a moment to distill out the common code from inside your
>> choose statement, which is a pattern that often helps with downstream
>> processing (but had nothing to do with your problem).
> Sorry, I meant to say "helps with downstream maintenance", not processing.
> . . . . . . . . . . . Ken
> --
> XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz
> Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
> Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
> Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
> G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
> Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.