Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Cocoon outputing files >Thread Next - Re: Cocoon outputing files Re: Cocoon outputing filesTo: 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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
