Re: [xsl] XSLT Comparison of Two Trees

Subject: Re: [xsl] XSLT Comparison of Two Trees
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 09 Sep 2009 12:28:36 +0200
Doug Franklin wrote:

I'm getting this error:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.



--------------------------------------------------------------------------------


The system cannot locate the resource specified.

First of all I would not start with running the XSLT transformation in the browser but rather first test it with an XSLT processor you can run from the command line or within an IDE so that you can actually see the transformation result and get better error reporting.
The stylesheet I wrote outputs an XML fragment as I did not know which format you want and I simply focussed on presenting the XPath expressions to select the added/deleted/moved nodes.
So you will probably want/need to adapt that stylesheet to your needs if you want to run it in a browser and have it generate HTML.


Am I failing to pull both trees in?


<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="2.0">

<xsl:param name="pv" select="'previous.xml'"/>

This parameter should set the URL of the XML document with the previous codes.



--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread