rowspan

Questions about XML that are not covered by the other forums should go here.
Mario777
Posts: 4
Joined: Fri Apr 04, 2014 2:32 pm

rowspan

Post by Mario777 » Thu Apr 17, 2014 4:33 pm

Hello!
I have a table with 2 columns and in 1 column I want to make a rowspan.
I want to make a rowspan in my column in my table in XML and XSL but it won't work.

My XML:

Code: Select all


<tabMob>
<thead>
<tr>
<th>
Pflegediagnosen und Pflegeinterventionen
</th>
<th>
Vermögen
</th>
</tr>
</thead>
<tbody>
<tr>
<tdrowspan>
rowspan=anzahl der weiteren reihen </tdrowspan>
<td>
o selbstständig <br />
</td>
</tr>
<tr><td></td>
<td>o teilweise Unterstützung</td>
</tr>
<tr><td></td>
<td>o vollständige Unterstützung</td>
</tr>
<tr><td></td>
<td>o Kontrolle und Aufsicht</td>
</tr>
</tbody>
</tabMob>
Now i wanted to make a template in my XSL:

Code: Select all


    <xsl:template match="n1:tdrowspan">
<td rowspan="0">
<xsl:apply-templates></xsl:apply-templates>
</td>
</xsl:template>
But it doesnt work, can anybody please help me?

Thank you very much!
Best regards!

adrian
Posts: 2540
Joined: Tue May 17, 2005 4:01 pm

Re: rowspan

Post by adrian » Fri Apr 18, 2014 12:39 pm

Hi,

I'm not sure what is the desired result.
Note that rowspan=0 is not supported by all web browsers.
From http://www.w3schools.com/Tags/att_td_rowspan.asp
Note: Only Firefox and Opera support rowspan="0", ...
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply