[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|