X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bfec9cc7ab5a396f7662090b208691ec59a69f1b..2f1753cc3e240fa497a87873ed19fe3f11e22331:/doc/help/xslt/slides/keynote/xsltsl/cmp.xsl diff --git a/doc/help/xslt/slides/keynote/xsltsl/cmp.xsl b/doc/help/xslt/slides/keynote/xsltsl/cmp.xsl deleted file mode 100644 index 6e2866d6..00000000 --- a/doc/help/xslt/slides/keynote/xsltsl/cmp.xsl +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - - - $Id: cmp.xsl 6297 2006-09-14 01:32:27Z xmldoc $ - - - Hummel - Mark - - - 2003 - Mark Hummel - - - - XML Compare - - -
- Introduction - - This module provides a template for comparing two xml documents. - -
-
- -
- - - - Find differences - - - Compare two xml documents and display differences. Two xml documents are defined to be the same if: They have the matching elements and attributes, and that the data in the elements also match. The comparison is order sensitive. - - The element names from the documents at the current depth are compared, followed by their values, then any attribute names and values are compared. The process is applied then to the subtrees of the documents. - - Notes: If there are leaf nodes in one nodeset which don't exist in the other, the value of those 'extra' elements won't appear as a difference. - - - - - - - ns1 - ns2 - - The two nodesets which are to be compared. - - - - - - - Returns the difference between the documents. - - The format of the output is an xml document. A node is added to the result tree for every difference. The node contains the type of difference (e.g element name difference, attribute value difference, etc), the value in the first nodeset and the value in the second nodeset, and the parent node. The indentation level is the depth at which the difference was found relative to the first document. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - node[]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Compare - - - Recursively compare two xml nodesets, stop when a difference is found and return false. Otherwise return true if the document is identical. - - The element names from the documents at the current depth are compared, followed by their values, then any attribute names and values are compared. The process is applied then to the subtrees of the documents. - - Notes: If there are leaf nodes in one nodeset which don't exist in the other, the value of those 'extra' elements won't appear as a difference. - - - - - - - ns1 - ns2 - - The two nodesets which are to be compared. - - - - - - - False when the nodesets are not identical, empty otherwise. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-