[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT Comparison of Two Trees

Subject: Re: XSLT Comparison of Two Trees
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 09 Sep 2009 12:28:36 +0200
Re:  XSLT Comparison of Two Trees
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.