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

Re: howto convert node set into 2D table

Subject: Re: howto convert node set into 2D table
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 04 Jul 2007 13:11:59 +0100
Re:  howto convert node set into 2D table
On Wed, Jul 04 2007 05:33:47 +0100, scarleton@xxxxxxxxxxxxxxxx wrote:
...
> There is an attribute to determine if the element should be shown, the
> data really looks like this:
>
> <category>
> <images>
>   <image name="a" display="true">1</image>
>   <image name="b" display="true">2</image>
>   <image name="c" display="true">3</image>
>   <image name="d" display="true">4</image>
>   <image name="e" display="false">5</image>
>   <image name="f" display="true">6</image>
>   <image name="g" display="false">7</image>
>   <image name="h" display="true">8</image>
> </images>
> </category>
...
> The data is a bit more complex then the sample data above.  The
> <category> element can also contain a <categories> element that
> contains another set of <category> elements.  I need to transform both
> the images/image and the categories/category under the main category
> element, the same way.

Do they all became part of one table, or is each images or categories a
separate table?

Are you using XSLT 1.0 or XSLT 2.0?

Regards,


Tony Graham.
======================================================================
Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx   http://www.menteithconsulting.com

Menteith Consulting Ltd             Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.