Generating XHTML instead of HTML
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Thu Feb 09, 2006 2:20 pm
Generating XHTML instead of HTML
Hello
I have an XML and an XSL file that work well in a regular browser, but the file generated by Oxygen doesn't parse well. I guess it's because it is trying to generate Html Transitional, but I need Xhtml. The Oxygen transformation removes the closing tags for the meta and link declaration, and the img, and so on.
Do you know how I could tell it to do exactly what I need?
Thanks you!
I have an XML and an XSL file that work well in a regular browser, but the file generated by Oxygen doesn't parse well. I guess it's because it is trying to generate Html Transitional, but I need Xhtml. The Oxygen transformation removes the closing tags for the meta and link declaration, and the img, and so on.
Do you know how I could tell it to do exactly what I need?
Thanks you!
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post samples for receiving more help
Post by sorin_ristache »
Hello,
Any XSLT transformer embedded in <oXygen/> outputs only well-formed XML documents for the html, xhtml and xml output methods. That means any opening tag is matched by a corresponding closing tag. Please post small sample files of the input XML, input XSL and the transformation result obtained in <oXygen/>. Also post the result that you expect from the transformation in order to receive more help.
Regards,
Sorin
Any XSLT transformer embedded in <oXygen/> outputs only well-formed XML documents for the html, xhtml and xml output methods. That means any opening tag is matched by a corresponding closing tag. Please post small sample files of the input XML, input XSL and the transformation result obtained in <oXygen/>. Also post the result that you expect from the transformation in order to receive more help.
Regards,
Sorin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
If the output method for the transformation is html then an HTML meta tag will appear and it will not have a closing tag indeed.
Now you can set the serialization method to xml in XSLT 1.0 or to xhtml in XSLT 2.0 to have the document XML wellformed.
That will be:
<xsl:output method="xml"/>
or, for XSLT 2.0:
<xsl:output method="xhtml"/>
Best Regards,
George
If the output method for the transformation is html then an HTML meta tag will appear and it will not have a closing tag indeed.
Now you can set the serialization method to xml in XSLT 1.0 or to xhtml in XSLT 2.0 to have the document XML wellformed.
That will be:
<xsl:output method="xml"/>
or, for XSLT 2.0:
<xsl:output method="xhtml"/>
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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