Using Saxon to generate many result files from one XML doc
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 6
- Joined: Wed May 19, 2004 6:29 pm
Using Saxon to generate many result files from one XML doc
Post by Steve Wilkison »
Hi folks. I'm reading a book which says you can use Saxon to generate multiple result files from one XML document. But I can't seem to get it to work through Oxygen. Any help or insight would be greatly appreciated. Here's how my XSL file begins:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon">
<xsl:template match="/">
<saxon:output method="html" file="toc.html">
<html xmlns="http://www.w3.org/1999/xhtml">
But when I try to apply the Transformation Scenario I get two errors both on the <saxon:output method="html" file="toc.html" line:
Attribute file is not allowed on this element
Element must have a "href" attribute
If I change the "file" attribute to "href" that doesn't work.
Any help on what I'm doing wrong would be greatly appreciated. Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon">
<xsl:template match="/">
<saxon:output method="html" file="toc.html">
<html xmlns="http://www.w3.org/1999/xhtml">
But when I try to apply the Transformation Scenario I get two errors both on the <saxon:output method="html" file="toc.html" line:
Attribute file is not allowed on this element
Element must have a "href" attribute
If I change the "file" attribute to "href" that doesn't work.
Any help on what I'm doing wrong would be greatly appreciated. Thanks.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello Steve,
For the multiple file output question please see the topic http://www.oxygenxml.com/forum/ftopic911.html
For your document I get the same 2 errors. Then I just changed the attribute name from file to href and the transformation worked. Because it is a XSLT 1.0 stylesheet that uses a Saxon specific extension element you have to use Saxon 6.5.3 as XSLT transformer in the transformation scenario edit dialog.
Best regards,
Sorin
For the multiple file output question please see the topic http://www.oxygenxml.com/forum/ftopic911.html
For your document I get the same 2 errors. Then I just changed the attribute name from file to href and the transformation worked. Because it is a XSLT 1.0 stylesheet that uses a Saxon specific extension element you have to use Saxon 6.5.3 as XSLT transformer in the transformation scenario edit dialog.
Best regards,
Sorin
-
- Posts: 6
- Joined: Wed May 19, 2004 6:29 pm
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