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

Using Saxon to generate many result files from one XML doc

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.
sorin_ristache
Posts: 4144

Mon Apr 04, 2005 4:44 pm

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

Mon Apr 04, 2005 5:42 pm

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests