[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Debugging

Subject: Re: Debugging
From: "Abel Braaksma (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Aug 2014 09:42:55 -0000
Re:  Debugging
> -----Original Message-----
> From: Philip Fearon pgfearo@xxxxxxxxxxxxxx [mailto:xsl-list-
> service@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Monday, August 18, 2014 11:50 AM
> Subject: Re:  Debugging
>
>
> The only annoyance is that I have to remember to remove the fn:trace()
> function calls once debugging is complete!
>

The specification does not state it literally, but the fn:trace function is
listed under "3.2 Diagnostic tracing" and its destination and output format
are implementation dependent, so one would guess that an XPath processor would
give you an option to switch tracing on and off from the commandline or
through other means (if switched off, it becomes a no-op). This would be
similar to xsl:assert in XSLT 3.0, for which a processor must provide a means
to switch it on or off.

Alternatively, you could redirect the output to a trace listener that does
nothing if in release build.

Cheers,

Abel Braaksma
Exselt streaming XSLT 3.0 processor
http://exselt.net

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.