If you want to suppress "regular" output, what's wrong with:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
xmlns:saxon = "http://saxon.sf.net/"
exclude-result-prefixes="#all"
>
<xsl:output method="xml" />
<xsl:template match="/">
<xsl:result-document href="doc1.xml">
<doc1/>
</xsl:result-document>
<xsl:result-document href="doc2.xml">
<doc2/>
</xsl:result-document>
</xsl:template>
</xsl:stylesheet>
Invoking it like that
java net.sf.saxon.Transform -xsl:test.xsl -s:anyfile.xml
yields no output on the shell.
-Gerrit
On 27.01.2011 11:35, Szabo, Patrick (LNG-VIE) wrote:
Hi,
I'm using the most recent version of Saxon.
I want to split one file into many others without outputting the
original file.
I've always used this:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://saxon.sf.net/" exclude-result-prefixes="#all">
<xsl:output method="saxon:net.sf.saxon.event.Sink" version="1"
encoding="ISO-8859-1" indent="yes"/>
...
but I get the following error:
Unknown serialization method
{http://saxon.sf.net/}net.sf.saxon.event.Sink
Is that because of the newer Version of Saxon ?!
Am I doing something wrong ?!
Kind regards
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--