Hai All,
The given code is not working for the below input because of the input change.
Input:
<author-group>
<author><given-name>Bing</given-name><surname>Pan</surname>
<cross-ref refid="aff1"><sup>a</sup></cross-ref>
<cross-ref refid="aff2"><sup>b</sup></cross-ref>
<cross-ref refid="cor1"><sup>⁎</sup></cross-ref>
<e-address>panb04(_at_)mails(_dot_)tsinghua(_dot_)edu(_dot_)cn</e-address></author>
<author><given-name>Anand</given-name><surname>Asundi</surname>
<cross-ref refid="aff1"><sup>a</sup></cross-ref></author>
<author><given-name>Huimin</given-name><surname>Xie</surname>
<cross-ref refid="aff2"><sup>b</sup></cross-ref></author>
<author><given-name>Jianxin</given-name><surname>Gao</surname>
<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,
China</textfn></affiliation>
<affiliation id="aff3"><label>c</label><textfn>The Welding Institute,
Great Abington, Cambridge CB21 6AL, UK</textfn></affiliation>
</author-group>
The existing code is working for fine for a single affiliation. If the
author is having multiple affiliations the code is not working as
intended.
Output of the code:
<author>B. Pan</author>, <author>A. Asundi</author> (Singapore)
<author>H. Xie</author> (China) & <author>J. Gao</author> (UK)
Output required:
<author>B. Pan</author> (Singapore, China), <author>A. Asundi</author>
(Singapore), <author>H. Xie</author> (China) & <author>J.
Gao</author> (UK)
Please help in getting the required output.
Regards,
Ganesh
On Fri, Mar 6, 2009 at 6:20 PM, G. Ken Holman
<gkholman(_at_)cranesoftwrights(_dot_)com> 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(_at_)CraneSoftwrights(_dot_)com
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--