XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
poo sinSubject: Tracing support?
Author: poo sin
Date: 05 Oct 2005 04:42 PM
Does StylusStudio have Tracing/logging support. This will help to log result when processing transformations for big xml files.

Thanks,
pS

Postnext
Ivan PedruzziSubject: Tracing support?
Author: Ivan Pedruzzi
Date: 05 Oct 2005 06:16 PM
You can use <xsl:message/> see details at http://www.w3.org/TR/xslt#message.

The messages will go into the "output" window.

hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
poo sinSubject: Tracing support?
Author: poo sin
Date: 05 Oct 2005 07:37 PM
Hello Ivan,

Thank you for your response. Is there an in-built support for logging; asserting in stylus studio that writes to a log file and asserts the conditions as it moves along the transformations.

Thanks,
Pooja

Postnext
Ivan PedruzziSubject: Tracing support?
Author: Ivan Pedruzzi
Date: 05 Oct 2005 10:48 PM
Pooja,

What do you mean by "assert the conditions"?

In the xsl:message body you can evaluate any expression
for instance

<xsl:message>
<xsl:value-of select="."/>
</xsl:message>

If you need to generate log file you could create a stylesheet for that purpose that outputs text.

What are you trying to achieve?


Ivan Pedruzzi
Stylus Studio Team

Postnext
poo sinSubject: Tracing support?
Author: poo sin
Date: 06 Oct 2005 01:01 AM
Ivan,

Thanks once again. I am thinking to write to log files as the transformations go on and when some errror happens or anomaly in the output xml file, then to look at the log file.

To write another transformation file to generate log, I'm not sure whether it will be concurrent and happening in parallel as process is processing.

Any thoughts?

Thanks,
pS

Posttop
Ivan PedruzziSubject: Tracing support?
Author: Ivan Pedruzzi
Date: 06 Oct 2005 10:16 AM

<<"..some error happens or anomaly..">>

If by error/anomaly you mean an incoming document with a structure different from what you are expecting, you could build a simple schema so you can validate them before running the XSLT processor.

If you are trying to catch runtime errors such as stack overflow, xsl:message can be used to print messages to the standard output that can can be pipe to a file when you are running the XSLT processor from the command line.

Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.