Subject: Re: [xsl] Grouping based on key result From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 20 May 2009 11:16:31 -0400 |
Can somebody look into my problem and provide the solution.
Technical assistance at no charge is sometimes provided, but merely as a by-product of our ongoing discussion of XSLT.
1. Post a question or point for discussion according to the list guidelines (at http://www.mulberrytech.com/xsl/xsl-list/), and *hope* for a response, which cannot be guaranteed.
Your post does not follow list guidelines; plus, it conveys the impression that you expect it is someone's responsibility to help you. But this is not the case. No one is being formally compensated for participating in this list.
theIn addition to following simple rules of net etiquette and common sense, you will improve the chances that you will receive prompt and helpful responses by:
* Asking questions specific enough that answers are possible. Describe what you are trying to do, how you approached it, what happened, and why you dont like the result you got. Dont simply say it gave me an error; paste in the error message (someone else can probably make sense of it).
* Illustrating your question with a demonstration of the problem. Well-composed questions frequently include a small XML sample, an XSLT stylesheet,
results received, and the result that was desired all in miniature, to make it comprehensible to readers new to your problem. (It is also not uncommon to discover what a problem actually is in the process of reducing it to an illustrative version.)
To this I can add something that ought to be plain common sense: the best way to get help is to offer it. If you can't offer help, then you need to offer something else valuable that convinces other readers that venturing to help you is worth their while.
Cheers, Wendell
On Tue, May 19, 2009 at 9:58 AM, Ganesh Babu N <nbabuganesh@xxxxxxxxx>wrote:
> Dear All, > > Please find my good quality sample 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@xxxxxxxxxxxxxxxxxxxxx</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 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 Mon, May 18, 2009 at 2:16 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote: >> 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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Grouping based on key res, Ganesh Babu N | Thread | Re: [xsl] Grouping based on key res, Ganesh Babu N |
Re: [xsl] grouping items in a list , Michael Ludwig | Date | Re: [xsl] Need XSL coding, List Owner |
Month |