This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: retrieve data from #1 xml via data from #2 xml (again)
- To: Walter Torres <walter at torres dot ws>
- Subject: Re: [xsl] Re: retrieve data from #1 xml via data from #2 xml (again)
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 5 Apr 2001 09:46:01 +0100
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <Pine.LNX.4.21.0104041713530.11226-100000@ethos.braverock.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Walter,
Doh. The <xsl:for-each for the data should be *outside* the
row-creation:
<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>
i.e. for each bit of data (interaction), create a row. Within the
row, for each column, create a cell.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list