[XSL-LIST Mailing List Archive Home]
Re: [xsl] appending to result-document
Subject: Re: [xsl] appending to result-document|
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 03 Aug 2005 09:23:46 +0100
Thanks Michael and Sam for your responses.
Using xsl:message and pipelining seem to be good solutions although I'll
be tempted to use xsl:message as I already have 3 files in the pipeline !
I have used xsl:message several times to debug my files or test
intermediary output. But I wasnt aware that I could actually store these
messages in some file. Could you either tell me how to do it or point me
to some web page where I can read some more ?
Im presently running all my xsl files using the Transformer class in the
Michael Kay wrote:
Yes, for producing a log like this I would recommend xsl:message. The Saxon
implementation of xsl:message allows you some control over the formatting
and destination of the messages (but only from Java, not from the command
The other way to do it is to write a single result tree that contains real
output interleaved with log output, and then postprocess it (pipelining
again!) with a transformation that makes two passes over the input,
outputting first the "real output" and then the "log".
From: Sam D. Chuparkoff [mailto:sdc@xxxxxxxxxx]
Sent: 03 August 2005 03:14
Subject: Re: [xsl] appending to result-document
On Tue, 2005-08-02 at 14:48 +0100, Rahil wrote:
Hione is .html
I have an xsl file which has two output formats. The first
and the other is a named xml output.of general
The output I want is two files: (i) mainResult.html , (ii) Log.xml
How do I append xml tags in the log.xml file in the midst
.html output ?
Appreciate all help.
Michael's response is of course spot on. I can understand your
motivation, however, as log.xml really is just that: a log. In similar
situations I've used xsl:message.
Anybody else willing to confess to having done this, or at