xsl-list
[Top] [All Lists]

AW: [xsl] no output files

2008-11-17 09:04:08
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(_dot_)szabo(_at_)lexisnexis(_dot_)at

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(_at_)saxonica(_dot_)com] 
Gesendet: Montag, 17. November 2008 14:57
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] 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(_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>
--~--


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