Newbie: Help understanding how to edit existing XSL
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 24
- Joined: Thu Oct 18, 2007 7:17 pm
- Location: California
Newbie: Help understanding how to edit existing XSL
Post by Charlie Williams »
Hello,
Goal: To assemble a set of files and xsl and css files to output files that look similar to the company template.
I have a four topic project that transforms to HTML and PDF using the default "DITA to HTML" and "DITA to PDF."
As a first step, I've moved the "dita2html.xsl" file to a folder within my project. When I open the "dita2html.xsl" file from the \C:\Program Files\Oxygen XML Editor 9.0\frameworks\dita\DITA-OT\xsl\dita2html.xsl, it show that it is well formed and there are now problems. When I open the same file from \C:\projects\AdminPassword\source\en\html\stylesheet\XLS\dita2html.xsl, I get these errors:
- Failed to compile
- Saxon failed to read.
I have no idea what is causing this problem. Here is the code.
Thanks,
Charlie
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
<!-- ereview.xsl
| DITA topic to HTML for ereview & webreview
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns:xt="http://www.jclark.com/xt"
extension-element-prefixes="saxon xt">
<!-- stylesheet imports -->
<!-- the main dita to xhtml converter -->
<xsl:import href="dita2xhtml.xsl"/>
<xsl:output method="html"
encoding="UTF-8"
indent="no"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
/>
</xsl:stylesheet>
Goal: To assemble a set of files and xsl and css files to output files that look similar to the company template.
I have a four topic project that transforms to HTML and PDF using the default "DITA to HTML" and "DITA to PDF."
As a first step, I've moved the "dita2html.xsl" file to a folder within my project. When I open the "dita2html.xsl" file from the \C:\Program Files\Oxygen XML Editor 9.0\frameworks\dita\DITA-OT\xsl\dita2html.xsl, it show that it is well formed and there are now problems. When I open the same file from \C:\projects\AdminPassword\source\en\html\stylesheet\XLS\dita2html.xsl, I get these errors:
- Failed to compile
- Saxon failed to read.
I have no idea what is causing this problem. Here is the code.
Thanks,
Charlie
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
<!-- ereview.xsl
| DITA topic to HTML for ereview & webreview
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns:xt="http://www.jclark.com/xt"
extension-element-prefixes="saxon xt">
<!-- stylesheet imports -->
<!-- the main dita to xhtml converter -->
<xsl:import href="dita2xhtml.xsl"/>
<xsl:output method="html"
encoding="UTF-8"
indent="no"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
/>
</xsl:stylesheet>
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
The stylesheet you copied is depending on other stylesheets.
In fact it is an entire tree of stylesheets which import other stylesheets. The "dita2html.xsl" is the root of the dependency tree. You should copy all the stylesheets from the "frameworks\dita\DITA-OT\xsl" to your project.
Regards,
Dan
Code: Select all
<!-- stylesheet imports -->
<!-- the main dita to xhtml converter -->
<xsl:import href="dita2xhtml.xsl"/>
Regards,
Dan
-
- Posts: 24
- Joined: Thu Oct 18, 2007 7:17 pm
- Location: California
Thanks for the information
Post by Charlie Williams »
Hello Dan,
Thanks very much for the information. I'll give it a try.
Charlie
Thanks very much for the information. I'll give it a try.
Charlie
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