HTML end tags are not generated for non mandatory HTML items

Having trouble installing Oxygen? Got a bug to report? Post it all here.
M Philip

HTML end tags are not generated for non mandatory HTML items

Post by M Philip »

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
mphilip
Posts: 1
Joined: Mon Sep 08, 2003 5:59 pm
Location: Amsterdam

Post by mphilip »

got a reply from oxygen tech support.

it simply was the xml:output type that should not have been set to html.... (to xml instead)
Post Reply