Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Cocoon outputing files

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/6/2005 3:22:00 PM

Ripper wrote:


> I've got an XML file which I want to output to several real text (.rt) files
> in order to include them in my SMIL application. I've created an XSL which
> perfectly works (outputs 3 files to disk) in XMLspy processor, but fails to
> output the files when used as a transformer in Apache Cocoon server.
> 
> I'm using a windows machine with the latest cocoon.


> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="2.0">
            ^^^^
You are using XSLT version 2.0 which so far is not a recommendation (a 
standard) but a work in progress.
Most XSLT processors currently available support only XSLT 1.0, the few 
that support some version of XSLT 2.0 are based on some working draft of 
XSLT 2.0.

>             <xsl:result-document href="{$filename}" format="html">

I guess you need XSLT version 2.0 as you want to create several result 
documents with one stylesheet which is not supported in XSLT 1.0.

I think Cocoon is a framework implemented in Java so it probably allows 
to use an XSLT processor implemented in Java that follows the JAXP API.

Saxon 8 from <http://saxon.sourceforge.net/> is a Java implementation of 
XSLT 2.0 so it is probably possible to use that processsor in Cocoon but 
doing that is then not so much an XSLT task but a task of configuring 
Cocoon to use Saxon instead of the XSLT processor it uses currently.

Finding someone with that expertise in the Microsoft XSL group is not 
likely as most people here are more likely to use MSXML or .NET for XSL 
tasks. So you should look into the Cocoon documentation first whether it 
explains to configure it to use some other XSLT processor or ask on a 
Cocoon group or mailing list if you don't find a solution.

Another approach is finding out which XSLT processor your current Cocoon 
setup uses and to check its documentation whether it supports any 
extension for XSLT 1.0 allowing to create several output files. Again 
finding help with that task in this group is not likely.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent