-----Original Message-----
From: Philip Fearon pgfearo(_at_)googlemail(_dot_)com [mailto:xsl-list-
service(_at_)lists(_dot_)mulberrytech(_dot_)com]
Sent: Monday, August 18, 2014 11:50 AM
Subject: Re: [xsl] 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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--