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

Re: Template Select using a param

Subject: Re: Template Select using a param
From: Richard Jarvis <rjarvis@xxxxxxxxxxxxx>
Date: Thu, 9 Mar 2000 18:36:45 +0000 (GMT)
richard jarvis
OK, cool.

What I'm trying to do is this:

I'm performing an SQL query to generate a ROWSET.
I then want to display the results of this in a table.
I have XML saying which columns to include.

So I generate the correct number of columns using this xml and give them
the right headers.

Then I want to go through the rows in the rowset and for each row display
only the values of the children which are specified in the earlier xml.

So as i process the rows, i re-process the fields xml for each row,
passing in the current rows id.

So when i loop through the fields I want to say - for current row output
the values of the children with the names specified in the fields.xml.

When processing these fields i have $id - the row number and value-of .
which is the field I need to pick out.
And I want to display the value of that field within that row.

It's probably not the best way of doing it - but it seemed pretty simple
when I set out...

Thanks,

Richard




On Thu, 9 Mar 2000, David Carlisle wrote:

> 
> >  I was wondering if you could explain what the
> > statement does exactly - so I can try and work out where I'm going wrong.
> 
> well it wasn't a very exact statement because I wasn't clear from your
> posting what exactly you want to do.
> 
> you wrote
> 
> /test/ROWSET/ROW/@<xsl:value-of select="$id"/>/<xsl:value-of select="."/>
> 
> but even ignoring the fact that this is generating a string not an
> expression the result if $id was 'this' and the current node had value
> 'that' would be
> 
> test/ROWSET/ROW/@this/that
> 
> which would try to select a `that' child of a `this' attribute which
> doesn't make sense,
> so I assumed you wanted
> 
> test/ROWSET/ROW[@this]/that
> 
> which would be a `that' child of a ROW which had a `this' attribute
> (with any value).
> 
> But I'm not at all sure if that is really what you do want, or why it
> needs to be in a parameter. 
> 
> Perhaps you should just say at a higher level what you want to do, and 
> then someone can suggest some xsl.
> 
> David
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.