Using Saxon to generate many result files from one XML doc
Posted: Sat Apr 02, 2005 7:36 pm
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.