I added some XSLT editing and debugging capability to the Pollo (pollo.sourceforge.net)
XML editor. It is at ag101.sourceforge.net. I have not had any feedback
on it, but I use it regularly to place break points in XSL scripts and inspect
values. It does not currently do profiling, but the source is there and
it would not be difficult to add some timing features.
Al
>-- Original Message --
>Reply-To: [EMAIL PROTECTED]
>Date: Wed, 27 Nov 2002 08:59:43 -0700
>To: [EMAIL PROTECTED]
>From: Mariella Di Giacomo <[EMAIL PROTECTED]>
>Subject: RE: which is the best way to debug an XSLT file ?
>
>
>Thanks a lot.
>
>At 05:11 PM 11/26/02 -0800, you wrote:
>>Hi,
>>
>>How about something like:
>>
>><xsl:param name="debug"/>
>>
>><xsl:template match="random-template">
>> <xsl:choose>
>> <xsl:when test="not(boolean($debug))">
>> <div class="{@some-attribute}">
>> <xsl:apply-templates/>
>> </div>
>> <xsl:when>
>> <xsl:otherwise>
>> <xsl:text>---oO Debugging random-template match Oo---
>>div/@class = </xsl:text>
>> <xsl:value-of select="@some-attribute"/>
>> </xsl:otherwise>
>> </xsl:choose>
>></xsl:template>
>>
>>make sense?
>>
>>best,
>>-Rob
>>
>>
>>
>> > -----Original Message-----
>> > From: Mariella Di Giacomo [mailto:[EMAIL PROTECTED]]
>> > Sent: Tuesday, November 26, 2002 4:50 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: which is the best way to debug an XSLT file ?
>> >
>> >
>> > Hello,
>> >
>> > I would like to ask a question, even though I do not know if this is
>the
>> > correct mailing list.
>> >
>> > Which is the best way to debug an XSLT file, especially when I would
>like
>> > to know
>> > the time spent for a loop, an extension function, if statement, etc.
>> >
>> >
>> > Thanks a lot in advance for your help,
>> >
>> > Mariella
>> >
>
Al Byers
Wasatch Automation Group, LLC
P.O. Box 1672
Orem, UT 84059
801.400.5111
[EMAIL PROTECTED]
http://automationgroups.com/na/wasatch