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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.