xsl-list
[Top] [All Lists]

RE: Insert refs

2003-12-17 12:03:01
This is just a variation on the general theme of grouping, see
http://www.jenitennison.com/xslt/grouping

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Ricardo Saraiva
Sent: 17 December 2003 17:55
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Insert refs


Hello,

      I have a XML file with a lot of repeated information. 
The question is how do I insert refs not repeating information:

For example if I have:

<email>
      <to>John</to>
      <to>Bill</to>
</email>
<email>
      <to>John</to>
</email>

I wnat the output to be:

      <to id ="id1">John</to>
      <to id = "id2">Bill</to>

      <email>
              <to ref = "id1"/>
              <to ref = "id2"/>
      </email>
      <email>
              <to ref = "id1"/>
      </email>

Thanks in advance,

Ricardo Saraiva.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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