Debugging XSLT in Chrome Debugging XSLT in Chrome google-chrome google-chrome

Debugging XSLT in Chrome


  • Use node tests to check the results of XPath queries.
  • Use the document function to test file paths
  • Use the JavaScript console to run XPath queries on the XML data source
  • Use inline templates instead of xsl:include to eliminate path issues
  • Use comments to eliminate xsl:include statements referencing buggy templates
  • Use processing-instructions to comment blocks of code that have XML comments
  • Use an embedded stylesheet to workaround same-origin policy restrictions
  • Use input tags to print xsl:variable values.
  • Use attribute value templates to print unknown values
  • Use simplified stylesheets and parameterized XPath to modularize templates
  • Use Opera as a cross-reference, since it shows line numbers in its XSLT error messages.