xsl-list
[Top] [All Lists]

RE: [xsl] no output files

2008-11-17 08:57:25
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(_dot_)szabo(_at_)lexisnexis(_dot_)at] 
Sent: 17 November 2008 13:45
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] no output files

Hi, 
 
I´m using XSLT 2.0 and Saxon 9.
Is it possible to do a transformation without creating outputfiles ?!
Why ?!
Well, the xsl doesn´t really change the files, it just uses 
it´s information. 
 
cheers
 

Patrick Szabo
EPD / XSLT Konvertierung
Tel.: +43-1-534 52-1573
Fax.: +43-1-534 52-1573
patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at

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





--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>