[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Identical entries in different input documents should appear in the output document only once


Subject: [xsl] Identical entries in different input documents should appear in the output document only once
From: "Meyer, Roland 1. (NSN - DE/Germany - MiniMD)" <roland.1.meyer@xxxxxxx>
Date: Fri, 7 Sep 2007 17:54:17 +0200

Hi,

I have the following problem. I have a couple of XML documents to merge
to one output document.
Each document has the same structure like this:

<root>
  <block>
    <oneTag>some value<oneTag>
    <anotherTag>another value<anotherTag>
     ...
    <idTag>setId-itemId<idTag>
  </block>
  <block>
     ...
  </block>
   ...
</root>

I have to interpret the value in the idTag (the setId-itemId) as an
identifier for the complete structure between the block tags.
Within one document this identifying value comes only once, but the same
identifying value can be found in different documents.

What I now need:
My output file should list each block only ones, means although the same
identifying value is present in different input documents, it should
appear only once in the output document.

I can think about some heavy procedures by checking every found
identifier value in the already processed files (because then they are
already written to the output), but this will be very time consuming (I
have around 15 files with each up to 10000 blocks).

Is there any other and simpler way to - let's say - memorize the already
written blocks resp. identifiers?

Best Regards,
Roland


Current Thread
Keywords