Re: [xsl] no output

Subject: Re: [xsl] no output
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Thu, 27 Jan 2011 12:06:41 +0100
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.szabo@xxxxxxxxxxxxx
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146


-- Gerrit Imsieke GeschC$ftsfC<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.imsieke@xxxxxxxxx, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

GeschC$ftsfC<hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard VC6ckler

Current Thread