Using Saxon to generate many result files from one XML doc

Here should go questions about transforming XML with XSLT and FOP.
Steve Wilkison
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.
sorin_ristache
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
Steve Wilkison
Posts: 6
Joined: Wed May 19, 2004 6:29 pm

Post by Steve Wilkison »

Thanks very much for the response. I'll try this out. Steve
Post Reply