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

RE: : XSL processes XML incorrectly when uneven number

Subject: RE: : XSL processes XML incorrectly when uneven number of values returned in array elements
From: cknell@xxxxxxxxxx
Date: Fri, 10 Mar 2006 08:07:42 -0500
RE: :  XSL processes XML incorrectly when uneven number
Is there a maximum number of <option> children in an <optionListx> element, or could there be an indefinite number of columns in the output table?

We've already determined that there should be exactly seven rows (one for each <optionListx> element). The task becomes very easy if there is a maximum number of columns and very tricky if the number of columns is indeterminate.

Please advise.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Cave, Neil <Neil.Cave@xxxxxxxxxxxxxx>
Sent:     Fri, 10 Mar 2006 13:44:53 +0100
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  RE: :  XSL processes XML incorrectly when uneven number of values returned in array elements

Hi Charles

I can try give it a go with 2.0

Alternatively, if I absolutely have to, I can modify the XSL that
transforms the XML from the back-end application to the XML required by
the front-end app. The front-end app requires data in the
free-xml/optionList/option format. 
However, the front-end app will accept the data as attributes or
elements.

I went with elements because I could not figure out how to map the
elements of the XML from the back-end app to the attributes of the
front-end XML using my XSL tool.

I had some XSL that displayed the data correctly when I used a test XML
document where the data was returned as attributes as in the structure
below.  

<free-xml>
<optionList1>
 <option desc="92" value="1"/>
 <option desc="101" value="2"/>
</optionList1>
Etc...

However, because of my limited XSL skills I could only create the
integration XSL (using a tool) that returns the back-end data as
elements
<free-xml>
<optionList1>
 <option>92</option>
 <option>101</option>
</optionList1>
Etc...

But now I sit with this display issue...

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.