[xsl] Division

Subject: [xsl] Division
From: Alvaro Mujica <amujicaj@xxxxxxxxxx>
Date: Thu, 31 Jan 2002 11:22:20 -0400
Hi,
    I'm trying to transform an xml document into a html document. I'm having
problems with one issue. The xml document goes something like this:

<nw>
<text>
A
</text>
</nw>
<ne>
<nw>
<text>
1
</text>
</nw>
<ne>
<text>
2
</text>
</ne>
<sw>
<text>
3
</text>
</sw>
<se>
<text>
4
</text>
</se>
</ne>
<sw>
<text>
B
</text>
</sw>
<se>
<text>
C
</text>
</se>

I'm trying to divide the page in 4 and in this case I'm trying to divide the
upper right corner in four also. I'm having this xsl for the ne tag (the
other tags are similar):

<xsl:template match="ne">
<td><br/><div align="center">
<table width="300" height="100">
<tr>
<xsl:apply-templates select="nw"/>
<xsl:apply-templates select="ne"/>
</tr>
<tr>
<xsl:apply-templates select="sw"/>
<xsl:apply-templates select="se"/>
</tr>
</table>
<xsl:apply-templates/>
</div></td>
</xsl:template>

It does everything ok but after the division in the upper right corner it
writes 1234.

Thank you very much in advance.
Alvaro


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


Current Thread