|
Subject: [xsl] Change bar in xsl From: "Alexandre Moraes" <alexmoraes@xxxxxxxxx> Date: Tue, 13 Nov 2007 10:34:08 -0200 |
Hi,
I4m trying to use change-bar in xsl. I created an external table
with a column that would be my change bar but i still have a problem.
This problem is when I need to write a table and it has two <para>
inside an entry. I need to put the change bar just in the first line,
not in the full row.Revtag says if the content changed. My xml is:
<table>
<thead>
<row>
<entry>
<para>
First para Header
</para>
</entry>
<entry>
<para>
Second para Header
</para>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<para>
First entry first para body
</para>
</entry>
<entry>
<para>
Second entry first para body
<para>
<entry>
</row>
<row>
<entry>
<para>
<revtag>First para first entry body</revtag>
</para>
<para>
Second para first entry body
</para>
</entry>
<entry>
<para>
First para second entry body
<para>
<entry>
</row>
</tbody>
</table>
My xsl is:
<xsl:template match="table">
<table border="1" cellpadding="1" cellspacing="1">
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="row">
<tr>
<xsl:call-template name="BarraRev"/>(Create a td and if find
<revtag> set background = black.)
<td>
<xsl:call-template name="Identation"/>
</td>
<xsl:apply-templates/>
</tr>
</xsl:template>
<xsl:template match="entry">
<td>
<xsl:apply-templates/>
</td>
</xsl:template>
<xsl:template match=para>
<xsl:apply-templates/>
<br/>
</xsl:tempalte>
If someone has another solution.
Thanks
Alexandre
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] CSV to XML, Michael Kay | Thread | [xsl] position() outside for-each, Charles Ohana |
| Re: [xsl] Single output from many i, G. Ken Holman | Date | Re: [xsl] Single output from many i, David Sinclair |
| Month |