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

comparing XML document structure

Subject: comparing XML document structure
From: Graydon <graydon@xxxxxxxxx>
Date: Wed, 17 Aug 2011 17:57:06 -0400
 comparing XML document structure
So I have an XML document which defines the expected semantics of the
XML output of an SGML-to-XML conversion project as an exemplar; there
are structures like this, and like these, and like that.

I also have a whole bunch of XML output which ought to conform to that
semantics.  (This output is the product of a complex, multi-pass, highly
conditional set of XSLT transforms.)

The desired goal is to be able to programmatically pull the structure,
at least to the extent of parent-child element pairs, from the
semantics-defining file, and compare that to each output file in turn.

So if the semantics-defining file gives an example section element,
which has num, para, and subsection element children, what I want to be
able to do is create a sequence of axis relationships and test the
section elements of the output for axis relationships that are not
members of that sequence.

I'm nearly certain I can't do that, but thought it was much wiser to ask
and allow for the possibility of a pleasant surprise.

-- Graydon

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.