Hi all,
I have the following simple XSL:
<xsl:template match="para">
<xsl:element name="p">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
and appropriate templates to handle <row> and <entry>
The following XML fragment
<row>
<entry>
<para></para>
</entry>
<entry>
<para></para>
</entry>
<entry>
<para></para>
</entry>
</row>
generates the following XHTML:
<tr>
<td>
<p />
</td>
<td>
<p />
</td>
<td>
<p />
</td>
</tr>
I am using XMLSpy. Any idea why it's writing <p/> instead of <p></p>
when the <para> element has no content? It works fine when it has content.
I understand that <p /> is valid XHTML but unfortunately IE doesn't seem
to render it correctly (the table row doesn't show). Is there a way to
force it to write <p></p> instead of just <p/>?
Thnaks,
--tassos
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list