Subject: RE: [xsl] Split with delimiter and remove duplicate From: "Pankaj Chaturvedi" <pankaj.chaturvedi@xxxxxxxxx> Date: Fri, 27 Jun 2008 19:43:29 +0530 |
David wrote: your problem would be clearer if you provided a sample input and the result you want. I think your smple input is really just an incomplete descriptiuon, not something to pass as input to a stylesheet? Yeah I guess, thought I should make it simple for list, but was not clear enough. David wrote: what repeats? If it repeats does do all the repeats get the sma enumber in brackets and/or the same number after the bracket. If you remove duplicates do teh remaining ones have to be renumbered, .... "Not necessarily, I only have collect all the <affil>s, though need to avoid the duplication (no renumbering is required). Hope I've made myself clear now". Below is actual requirement looks like. Output ======= <author> <fname>S S</fname> <lname>Mark</lname> <affil> [1] 1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA [2] 2Division of Urology, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA </affil> </author> <author> <fname>K K</fname> <lname>Will</lname> <affil> [1] 1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA [2] 2Northwestern University Feinberg School of Medicine, Evanston Northwestern Healthcare, Evanston, Illinois, USA </affil> </author> Output ======= <author> <fname>S S</fname> <lname>Mark</lname> <affil>1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> <affil>2Division of Urology, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> </author> <author> <fname>K K</fname> <lname>Will</lname> <affil>1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> <affil>2Northwestern University Feinberg School of Medicine, Evanston Northwestern Healthcare, Evanston, Illinois, USA</affil> </author> <afflist> <affil>1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> <affil>2Division of Urology, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> <affil>2Northwestern University Feinberg School of Medicine, Evanston Northwestern Healthcare, Evanston, Illinois, USA</affil> </afflist> Affiliation <affil>1Renal Division, Brigham and Women's Hospital, Harvard Medical School, Boston, Massachusetts, USA</affil> appears ones in <afflist> avoiding duplication. "Apology Martin, I added <affils> element mistakenly in previous post". Pankaj Confidentiality Notice:" This message and any attachment(s) contained here are information that is confidential, proprietary to IDS Infotech Ltd. and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer."
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Split with delimiter and , David Carlisle | Thread | RE: [xsl] Split with delimiter and , Pankaj Chaturvedi |
RE: [xsl] LINQ to XML versus XSLT, Houghton,Andrew | Date | Re: [xsl] LINQ to XML versus XSLT, Joe Fawcett |
Month |