Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Write log file during xslt and xmlvalidate

From: "Michael Kay" <mike@------------>
To:
Date: 12/1/2004 12:21:00 PM
I don't know about the ant side of things, but you can set the destination
for Saxon's xsl:message output by doing, for example

((Controller)transformer).getMessageEmitter().setWriter(writer)

where transformer is the JAXP Transformer and writer is a java.io.Writer of
your choice.

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

> -----Original Message-----
> From: Robert Soesemann [mailto:rsoesemann@xxxxxxxxxxx] 
> Sent: 01 December 2004 11:51
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] Write log file during xslt and xmlvalidate
> 
> I'm using the Saxon8.jar XSLT2.0 engine. Do you know how to pipe its
> output from xsl:message to the ant context?
> 
> Best regards,
> 
> Robert
> 
> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
> Sent: Mittwoch, 1. Dezember 2004 12:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] Write log file during xslt and xmlvalidate
> 
> 
> The way to achieve this depends entirely on which XSLT 
> processor you are
> using.
> 
> JAXP 1.3 specifies that xsl:message output is written to the
> ErrorListener but not everyone implements that yet.
> 
> Michael Kay
> http://www.saxonica.com/
>  
> 
> > -----Original Message-----
> > From: Robert Soesemann [mailto:rsoesemann@xxxxxxxxxxx]
> > Sent: 01 December 2004 11:02
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] Write log file during xslt and xmlvalidate
> > 
> > Hello,
> > 
> > I have implemented a migration process in Ant with xsl 
> transformations
> 
> > and XML Schema validations. I want to write the 
> errors/warnings during
> 
> > validation and xsl:messages during  into a log file.
> > 
> > I know there is the echo task which can write to a file, but
> > it is only
> > able to write from the built script and not from the task. 
> > There must be
> > a way to pass task output to a log file.
> > 
> > Has anybody done this before?
> > 
> > Thanks Robert


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent