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

RE: xsl self-documentation - trace

Subject: RE: xsl self-documentation - trace
From: Thorbjørn Ravn Andersen <TRA@xxxxxxxx>
Date: Thu, 29 Jun 2000 11:02:13 +0200
xsl message trace
> >What is it you desire, that you cannot have with present means?
> 
> 
> How about including 50 lines of 'trace', then, when its all working,
> being able to leave the debug code in, but not operating?
> #if defined type of thing?

Something along the lines of

<xsl:param name="debug" select="f"/>

...

<xsl:if test="debug='t'">
  <xsl:message>*****</xsl:message>
</xsl:if>

embedded appropriately in your code?  Ugly, I know, but standard :-)
The various processors may have non-standard extensions to report the location in the input.

> I don't see much difference between debugging XSLT and
> any other language?

Not when working with printouts.  A debugger is most likely a bit off.

Wonder, though.  How easy would it be to interface e.g. Saxon to the debugger interface in Emacs?  That would be a step in the right direction.

> There was a 'debug' app announced some months ago,
> but I never persuaded it to work. It may be in the archives,
> but I can't remember its name.

I would like seeing it.  Any one have a hint?

-- 
  Thorbjørn


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.