XML (DocBook 5) -> HTML (w/ CSS) -> PDF
Here should go questions about transforming XML with XSLT and FOP.
XML (DocBook 5) -> HTML (w/ CSS) -> PDF
I have a content library stored in DocBook 5 xml, and I'm using Oxygen XML Editor to apply transformation scenarios. I have a long history with HTML & CSS, and the XML->HTML custom transformation scenario is working well (i.e., the resulting HTML document looks the way I want, and has the content I want).
However, when I edit the transformation scenario and enable "Perform FO Processing" on the "FO Processor" tab (Input: XSLT result as input; Method: pdf; Processor: Apache FOP), I get the following error:
The resulting html file has "<!DOCTYPE HTML>" at the beginning of the document (before the opening <html> tag). I've tried preventing this by adding the following to my XSL file:
But the DOCTYPE declaration persists. I've also edited my fop.xconf to include:
But that similarly has no effect on the outcome (i.e., still getting the same error). Thoughts and suggestions are appreciated.
However, when I edit the transformation scenario and enable "Perform FO Processing" on the "FO Processor" tab (Input: XSLT result as input; Method: pdf; Processor: Apache FOP), I get the following error:
Code: Select all
DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
Code: Select all
<xsl:stylesheet>
<xsl:output method='html' omit-xml-declaration='yes' indent='yes' doctype-public='' doctype-system=''/>
</xsl:stylesheet>
Code: Select all
<useragent>
<!-- Set features for the XML parser -->
<parser>
<features>
<!-- Allow DOCTYPE declarations -->
<feature name="http://apache.org/xml/features/disallow-doctype-decl" value="false"/>
</features>
</parser>
</useragent>
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