Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Debugging XSLT called from external program (xsl:message output?)

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 6/22/2008 8:50:00 AM



"p0" <yves.dhondt@g...> wrote in message 
news:7c04b348-2f49-444d-8256-3d4e0da81500@w......
> Dear all,
>
> I have a third-party program which calls a stylesheet and uses the
> returned output. The application uses the MSXML engine to do the
> transformations. Users are able to create their own stylesheets.
>
> Documentation of the XSLT format is sketchy at best, so trying to
> create my own stylesheet is rather difficult. I made one which does
> what I want for now but I want to look a bit deeper into it.
>
> My questions are:
>
> 1)Does MSXML allow somehow to debug the XSLT by stepping into it
> whenever it is called from the external program? Like, could I use
> Visual Studio 2008, put in some breakpoints, launch the app, and get
> it to break into Visual Studio 2008 on the stylesheet calls?
>
> 2)As the third-party program does not output xsl:message contents,
> does MSXML output it to somewhere by default? A simple file somewhere
> on my drive? Or maybe an eventlog? Or could I instruct it to do so for
> a while?
>
> 3)Is there a way to see what the XML is that is send together with the
> XSLT to the transformation engine?
>
> TIA,
>
> Yves
I don't know of anyway to debug MSXML in Visual Studio, you can debug 
XslCompiledTransform in VS, that's no help though.

I seem to recall that xsl:message only works if the terminate attribute is 
set to "yes", maybe making that up though.

You can always use the identity XSLT to see what was sent to the engine:

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name
 



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent