xsl-list
[Top] [All Lists]

RE: [xsl] Split with delimiter and remove duplicate

2008-06-27 08:35:21

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&#39;s Hospital, Harvard Medical
School, Boston, Massachusetts, USA  [2] 2Division of Urology, Brigham and
Women&#39;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&#39;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&#39;s Hospital, Harvard Medical
School, Boston, Massachusetts, USA</affil>  <affil>2Division of Urology,
Brigham and Women&#39;s Hospital, Harvard Medical School, Boston,
Massachusetts, USA</affil>
   </author>

   <author>
    <fname>K K</fname>
    <lname>Will</lname>
    <affil>1Renal Division, Brigham and Women&#39;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&#39;s Hospital, Harvard
Medical School, Boston, Massachusetts, USA</affil> 
        <affil>2Division of Urology, Brigham and Women&#39;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&#39;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




--~------------------------------------------------------------------
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>
--~--


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."

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>