[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: no output files

Subject: AW: no output files
From: "Szabo, Patrick (LNG-VIE)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Mon, 17 Nov 2008 15:03:22 +0100
AW:  no output files
Thx for your answers !

<xsl:output method="saxon:net.sf.saxon.event.Sink"/> works fine :)

cheers


Patrick Szabo
EPD / XSLT Konvertierung
Tel.: +43-1-534 52-1573
Fax.: +43-1-534 52-1573
patrick.szabo@xxxxxxxxxxxxx

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
www.lexisnexis.at





-----Urspr|ngliche Nachricht-----
Von: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Gesendet: Montag, 17. November 2008 14:57
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE:  no output files

There will always be at least one result tree, but its contents may be empty.
see 2.4:

<quote>
An implicit result tree is also created when the result sequence is empty,
provided that no xsl:result-document  instruction has been evaluated during
the course of the transformation. In this situation the implicit result tree
will consist of a document node with no children.
</quote>

But you don't have to serialize the result tree to a file. Try <xsl:output
method="saxon:net.sf.saxon.event.Sink"/>

Running a transformation for the sake of its side-effects is a risky strategy
- there's always a danger that the processor might optimize the whole thing
away. However, it's perfectly reasonable for example for a stylesheet to be
primarily performing data validation, and to produce as output a list of
validation errors which may in some (or most) cases be empty.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Szabo, Patrick (LNG-VIE) [mailto:patrick.szabo@xxxxxxxxxxxxx]
> Sent: 17 November 2008 13:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  no output files
>
> Hi,
>
> I4m using XSLT 2.0 and Saxon 9.
> Is it possible to do a transformation without creating outputfiles ?!
> Why ?!
> Well, the xsl doesn4t really change the files, it just uses it4s
> information.
>
> cheers
>
>
> Patrick Szabo
> EPD / XSLT Konvertierung
> Tel.: +43-1-534 52-1573
> Fax.: +43-1-534 52-1573
> patrick.szabo@xxxxxxxxxxxxx
>
> LexisNexis Verlag ARD Orac GmbH & Co KG Marxergasse 25, 1030 Wien FN
> 8333f, Handelsgericht Wien

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.