[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

template which handles identical XML-structures but ca

Subject: template which handles identical XML-structures but can insert unique label texts
From: "Christian Rasmussen" <christian@xxxxxxxxxxx>
Date: Thu, 26 Oct 2006 19:57:42 +0200
best but.ca
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.