[xsl] template which handles identical XML-structures but can insert unique label texts

Subject: [xsl] template which handles identical XML-structures but can insert unique label texts
From: "Christian Rasmussen" <christiankrasmussen@xxxxxxxxx>
Date: Thu, 26 Oct 2006 19:54:01 +0200
Hi there,

I have an XML file which contains lots of blocks which are quite the
same, but where the parent (ordinaryManureStructure,
ProcessedManureStrucutre) differs.

The end result should be a table with columns, but where the first
column contains label texts which are unique for each XML block, but
where the next columns is just the values (initialStorageQuantity
etc.)

I thought of creating a general template which creates the table, and
the create variables for the labelt texts and then pass the unique
texts in as arguments, but I'm afraid that is not possible. or is it?

What is the best pattern for solving this problem?
on beforehand thank you!

       <OrdinaryManureStructure>
           <InitialStorageQuantity>12345.6789</InitialStorageQuantity>
           <StorageStatusQuantity> 12345.6789</StorageStatusQuantity>
           <EndStorageQuantity>0.0</ EndStorageQuantity>
         </OrdinaryManureStructure

       <ProcessedManureStructure>
           <InitialStorageQuantity> 12345.6789</InitialStorageQuantity>
            <StorageStatusQuantity>12345.6789</StorageStatusQuantity>
            <EndStorageQuantity>0.0</ EndStorageQuantity>
       </ProcessedManureStructure>


best regards, Christian Rasmussen

Current Thread