<form xmlns="">
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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
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
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
The sample stylesheet from your message is not valid, the form should be inside an xsl:template, maybe you wanted something like:
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
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>
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service