Hi !
I wrote in my XML document :
<liste type="tableau" titre="Evaluation du risque de formation des sulfures">
<element>
<element>
<corps>Somme des notes</corps>
</element>
<element>
<corps>Risque</corps>
</element>
</element>
<element>
<element>
<corps>0 - 5</corps>
</element>
<element>
<corps>Nul</corps>
</element>
</element>
<element>
yes it's in French !!
And I wrote in my XSL stylesheet :
<xsl:template match="liste">
<xsl:choose>
<xsl:when test="@type[. = 'liste']">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:when>
<xsl:when test="@type[. = 'tableau']">
<center>
<text align="justify">
<table border="2">
<td bgcolor="#0D3092">
<font color="white">
<b>
<xsl:value-of select="@titre"/>
</b>
</font>
</td>
<xsl:apply-templates/>
</table>
</text>
</center>
</xsl:when>
</xsl:choose>
</xsl:template>
and this :
<xsl:template match="element/element">
<blockquote>
<div align="justify">
<tr>
<td>
<xsl:value-of select="corps"/>
<xsl:apply-templates/>
</td>
</tr>
</div>
</blockquote>
</xsl:template>
but my table is not structured ! How can I do to have it structured ?
Can you help me please ?!
Thanks
Anne
I wrote in my XML document :
<liste type="tableau" titre="Evaluation du risque de formation des sulfures">
<element>
<element>
<corps>Somme des notes</corps>
</element>
<element>
<corps>Risque</corps>
</element>
</element>
<element>
<element>
<corps>0 - 5</corps>
</element>
<element>
<corps>Nul</corps>
</element>
</element>
<element>
yes it's in French !!
And I wrote in my XSL stylesheet :
<xsl:template match="liste">
<xsl:choose>
<xsl:when test="@type[. = 'liste']">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:when>
<xsl:when test="@type[. = 'tableau']">
<center>
<text align="justify">
<table border="2">
<td bgcolor="#0D3092">
<font color="white">
<b>
<xsl:value-of select="@titre"/>
</b>
</font>
</td>
<xsl:apply-templates/>
</table>
</text>
</center>
</xsl:when>
</xsl:choose>
</xsl:template>
and this :
<xsl:template match="element/element">
<blockquote>
<div align="justify">
<tr>
<td>
<xsl:value-of select="corps"/>
<xsl:apply-templates/>
</td>
</tr>
</div>
</blockquote>
</xsl:template>
but my table is not structured ! How can I do to have it structured ?
Can you help me please ?!
Thanks
Anne