RE: noop?

Subject: RE: noop?
From: "Mike Ball" <Mike.Ball@xxxxxxxxxxxxxxxx>
Date: Wed, 9 Feb 2000 09:17:30 -0000
Which XSL processor are you using?

I'm currently experimenting with LotusXSL which supports the passing of
parameters into stylesheets. Using this mechanism you could pass in some
sort of debug flag and surround your diagnostic statements with xsl:if
statements.

I should add that I haven't actually tried passing parameters yet but the
documentation says they are supported and it seems pretty reliable.

Good luck


Mike Ball

Consultant
Software AG UK

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Mark D. Anderson
> Sent: 09 February 2000 03:10
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: xsl:noop?
>
>
> i currently have a whole lot of xsl:message statements in my stylesheets.
> not near as powerful as printf(), but it is all we have for debugging.
>
> in production i'd like to turn those off.
>
> so then i'd have
> <&DEBUG_MESSAGE_OPEN;> ... <&DEBUG_MESSAGE_CLOSE;>
> instead of
> <xsl:message> ... </xsl:message>
>
> everywhere.
> i'm not an sgml guru, so i can't seem to find a way to do this.
> but even if i could do:
> <!ENTITY DEBUG_MESSAGE_OPEN "xsl:noop">
> then there is no xsl:noop to turn it into.
>
> i guess the next step is to write a pre-processor in xslt which strips
> xsl:message statements from xslt stylesheets....
>
> it'd be nice if xslt processors had decent trace facilities (like
> perl -D),
> and if xsl:message were actually reliable in execution semantics, and
> if there were an easy way to turn it on and off. but no.
> programming in xslt is about as much fun as programming in sh, in terms
> of sophistication of the dev tools.
>
> btw -- still looking for an answer to my query of saturday 2/5,
> subject "no way to avoid errors if getting both strings and elements?"
>
> thanks.
>
> -mda
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread
  • RE: noop?
    • Mike Ball - Wed, 9 Feb 2000 09:17:30 -0000 <=