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

Re: Re: retrieve data from #1 xml via data from #2 xml

Subject: Re: Re: retrieve data from #1 xml via data from #2 xml (again)
From: "Walter Torres" <walter@xxxxxxxxx>
Date: Tue, 10 Apr 2001 23:38:57 -0500
walter doh
----- Original Message -----
From: "Jeni Tennison" <mail@xxxxxxxxxxxxxxxx>
To: "Walter Torres" <walter@xxxxxxxxx>
Cc: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, April 05, 2001 3:46 AM
Subject: Re:  Re: retrieve data from #1 xml via data from #2 xml
(again)


> Hi Walter,

Hi Jeni,


> Doh.  The <xsl:for-each for the data should be *outside* the
> row-creation:

Ahhh! [light bulbs going off!]


>  <xsl:for-each select="$data">
>     <tr>
>        <xsl:variable name="datum" select="events/call_event" />
>        <xsl:for-each select="$columns">
>           <xsl:variable name="column" select="." />
>           <td>
>              <xsl:value-of select="$datum/*[name() = $column]" />
>           </td>
>        </xsl:for-each>
>     </tr>
>  </xsl:for-each>

OK!

This is a step closer!

This now displays the proper 5 fields in the given order.

I change the order in the 'tableData.xml' file and the display change!

Sweet! <as my 9 year olds say>

But... <you knew this was comng didn't you?>

But, this should only give me 3 rows of data, since that is all I am giving
it.

Instead, I get my 3 rows of data, 3 times.

I justed added a forth row, now I get 4 copies of the 4 rows.

Like I said, one step closer.

I'm not seeing how this outside '<xsl:for-each>' should be doing this.

????????????

Walter


 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.