Debugging XSLT Publishing Scripts

Requirements:

Steps:

  • Open Visual Studio
  • Open all three files (that are in the same directory) by File > Open > File
  • In the format definition file, delete "ami://" from the <xsl:include> tag's URI

  • Begin transformation by XML > Start XSLT Without Debugging
  • Choose the Sample "UberDom" XML file from the prompt
  • Visual Studio will apply the Format Definition XSLT to the Sample "UberDom" XML and show you the output of that XSLT operation.

Notes

  • You can set breakpoints in the Format Definition XSLT to see runtime variable values and step through as the XML and XSLT is evaluated.