Contents of 1st-Hierarchic2Flat zipfile:

     Hierarchic1.xml
     Hie2Flat.xsl
     Flatfile1.xml
     Run1.bat

The file "Hierarchic1.xml"  contains three general ledger
journal entries, each having a header and two or more rows.
i.e. the JEs are structured as hierarchies.

The file "Hie2Flat.xsl" is a generic XSL stylesheet that 
illustrates how a hierarchic file like a journal entry can 
be transformed into a flat structure, i.e., it converts the
three GL JE's into eight rows, representing all of the debits 
and credits.

The XML file that results from the XSLT transformation is also
included ("Flatfile1.xml").  However the intention of this tutorial
is that you will use your own XSLT parser, such as XT or the 
XSLT-Helper HTML file, to execute the transformation yourself, 
and view the result.  If you save the resulting file it should be 
the same as the "Flatfile.xml"

Run1.bat is a batchfile which executes the transformation using
the command line, using James Taubers' "XT" utility, 

Command syntax:
  XT   (source XML)      (XSL sheet)   (result XML)
  XT   Hierarchic1.xml   Hie2Flat.xsl  flatfile1.xml

See http://www.oasis-open.org/cover/xslSoftware.html#xt,

Todd Boyle CPA 7/29/2000   rootledger.com

  
