BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Schemas, xsd, xdr
Validating XML with Schemas
Punctuated Changes In XML Documents
XMLStarlet Command Line XML Toolkit
W2XML v2.0 SR1
Free DTD for Academic Publishers
Arquemie for XML Schemas
XMLStarlet Command Line XML/XSLT Toolkit
XSD Merger


 
 

<< reBloggerSEO >>


By Martin Rowlinson (aka Marrow)
First Posted 06/23/2002
Times viewed 343

XSLT Stylesheet for summarizing the structure of an XML document


This post contains attachments
v20020623193508.zip 

Summary This example stylesheet analyzes and summarizes any given XML document.

This stylesheet can be used to take any given XML document and produce a summarized version of it.  It is not designed as a pre-cursor for creating a schema or DTD from a document - as it does not deal with the complexities of that process (i.e. it does not concern itself with element orders and choices; it does not analyze element or attribute values).  The stylesheet merely serves to take a complex XML document and produce a crude summary of the structure - removing repeated structures and aggregrating similar structures.

The stylesheet uses a two pass system - the first pass building a pre-analyzed RTF (Result Tree Fragment) and the second pass summarizing that RTF.  As there is no way in XSLT1.0 to convert RTFs to node-sets the stylesheet uses extension namespaces and three versions are supplied (Microsoft, Xalan and Saxon).

Please see the download zip file for the stylesheets.

Cheers
Marrow
http://www.MarrowSoft.com - home of Xselerator (XSLT IDE and debugger)
http://www.TopXML.com/Xselerator

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< reBloggerSEO >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML