HTML end tags are not generated for non mandatory HTML items
Posted: Mon Sep 08, 2003 5:32 pm
Hello there
I seem to be having a slight problem with a simple xslt transformation. I notice the following when I parse one of my xml files (using the oxygen transformation buttons):
<xsl:element name="input">
<xsl:attribute name="value">
<xsl:value-of select="@name"/>
</xsl:attribute>
</xsl:element>
produces
<input value="XXX">
while
<xsl:element name="randomname">
<xsl:attribute name="value">
<xsl:value-of select="@name"/>
</xsl:attribute>
</xsl:element>
produces
<randomname value="XXX"></randomname>
My problem is that the transformation of "HTML" tag names do not result in valid XHTML. I.o.w. where is the ending </input> tag? It also does this when I use <xsl:element name="img"> and probably some other HTML tags that do not have mandatory ending tags
Is there a solution to this? Thanks in advance
I seem to be having a slight problem with a simple xslt transformation. I notice the following when I parse one of my xml files (using the oxygen transformation buttons):
<xsl:element name="input">
<xsl:attribute name="value">
<xsl:value-of select="@name"/>
</xsl:attribute>
</xsl:element>
produces
<input value="XXX">
while
<xsl:element name="randomname">
<xsl:attribute name="value">
<xsl:value-of select="@name"/>
</xsl:attribute>
</xsl:element>
produces
<randomname value="XXX"></randomname>
My problem is that the transformation of "HTML" tag names do not result in valid XHTML. I.o.w. where is the ending </input> tag? It also does this when I use <xsl:element name="img"> and probably some other HTML tags that do not have mandatory ending tags
Is there a solution to this? Thanks in advance