[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Split with delimiter and remove duplicate
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."
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|