|
Subject: [xsl] Bold Text From: "Hy Huynh" <hvqh@xxxxxxxxxxx> Date: Fri, 20 Jul 2001 12:22:54 +0000 |
hi, this might be a simple question, but i havent figure it out yet.. i have the following XML-file:
<Table Colsep="1" Frame="All" Rowsep="1">
<Tgroup Align="Left" Charoff="50">
<Thead>
<Row Rowsep="1">
<Entry Colname="1" Change-bar="No">
<Para Change-bar="No"> Stage </Para>
</Entry>
<Entry Colname="2" Change-bar="No">Description</Entry>
</Row>
</Thead>
<Tbody>
<Row Rowsep="1">
<Entry Colname="1" Change-bar="No">
<Para Change-bar="No">20</Para>
</Entry>
<Entry Colname="2" Change-bar="No">
<Para Change-bar="No"> Bla Bla Bla </Para>
</Entry>
</Row>
.
.
.
<Row Rowsep="1">
<Entry Colname="1" Change-bar="No">
<Para Change-bar="No">22</Para>
</Entry>
<Entry Colname="2" Change-bar="No">
<Para Change-bar="No"> Bla Bla Bla
<Emphasis Emph-type="Bold"> Bold Text </Emphasis>
Bla Bla Bla
<Emphasis Emph-type="Bold"> More Bold Text</Emphasis>
</Para>
</Entry>
</Row>
.
.
. <xsl:template match = "Table" mode = "Table" name = "Table">
<table>
<tr>
<td>
<table>
<xsl:for-each select="Tgroup/Thead/Row">
<tr>
<xsl:for-each select="Entry">
<td>
<b><xsl:value-of select="."/></b>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
<xsl:for-each select="Tgroup/Tbody/Row">
<tr>
<xsl:for-each select="Entry">
<td>
<p></p> </td> </xsl:for-each> </tr> </xsl:for-each> </table> </td> </tr> </table> </xsl:template>
sincerly hy huynh
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] $5 PAYPAL for correct ans, Robert Koberg | Thread | Re: [xsl] Bold Text, Lawrence Mielniczuk |
| Re: [xsl] bowser compatibility, xsl, Michael Beddow | Date | Re: [xsl] Searching for an attribut, Rob Lugt |
| Month |