<form xmlns="">

Having trouble installing Oxygen? Got a bug to report? Post it all here.
willismorse
Posts: 3
Joined: Thu Aug 26, 2004 6:46 pm

<form xmlns="">

Post by willismorse »

Not sure if this is an XSL question or an Oxygen question, but...

My XSL contains this:

<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<form>
...
</form>

When I generate XHTML, I get this:

<form xmlns="">
...
</form>


This xhtml won't validate, complaining that this attribute isn't supported for this tag. It makes no difference if I manually paste something into the empty quotes.

Any thoughts?

Willis Morse
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

The sample stylesheet from your message is not valid, the form should be inside an xsl:template, maybe you wanted something like:

Code: Select all


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<form> ...</form>
</xsl:template>
</xsl:stylesheet>
I cannot reproduce the output though neither with Xalan nor with Saxon. Please conside posting a complete cut down sample and let us know what XSLT processor you are using to perform the transformation.

The result document you are getting is equivalent with
<form>
...
</form>
if the namespaces are taken into account but the DTDs are not namespace aware thus the error you see.

Best Regards,
George
Post Reply