xsl-list
[Top] [All Lists]

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

2006-10-26 10:54:23
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

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