This directory contains sample applications to show how to use the 
Oracle Transviewer beans. Currently, the Oracle Transviewer beans 
toolset contains XMLSourceView, XMLTreeView, XSLTransformer, DOMBuilder
and XMLTransformPanel beans.

The following are the sample Java files in this directory:

        ViewSample  - A sample visual application using the  
                      XMLSourceView bean and XMLTreeView bean.
                      It visualizes XML document files.

        AsyncTransformSample - A sample nonvisual application using 
                      XSLTransformer bean and DOMBuilder bean.
                      It applies XSLT stylesheet specified in doc.xsl 
                      on all *.xml files from the current directory.   
                      The results are in the files with extenton .log. 
 
        XMLTransformPanelSample - visual application which using 
                      XMLTransformPanel bean. This bean uses all four beans
                      from above.Applies XSL transformations on XML documents
                      and shows the result Visualizes and allows editin of
                      XML and XSL input files.
                     
Installing the Transviewer beans

1) You need to download and install the following components that are used
   by the Transviewer beans:

   - Oracle JDBC Driver for thin client (jar file classes111.zip)

   - Oracle XML SQL Utility (jar file oraclexmlsql.jar)

   After installing this components, include classes111.zip and 
   oraclexmlsql.jar into your classpath.


2) The beans and the samples use swing 1.1. If you use
   jdk1.2, go to step 3. If you use jdk1.1, you will need to
   download Swing 1.1 from Sun. After downloading Swing, add
   swingall.jar to your classpath. 
3) Change the JDKPATH in the Makefile to point to your JDK path.
   In addition, on Windows NT you need to change the file separator
   as stated in the makefile.
4) Use "make" to generate .class files.
5) Run the sample programs using commands:
   gmake sample1
   gmake sample2 
   gmake sample3 

6) Visualize the results in .log files using the ViewSample.
  
   Use the XSLT document from './tohtml.xsl' to transform the XML document
   from './booklist.xml'. 
     
A few .xml files are provided as test cases. A XSL stylesheet 'doc.xsl'
is used by XSLTransformer.


Note:  sample1 runs the XMLTransViewer program so that you can 
to import and export XML files from Oracle 8i, keep your XSL transformation
files in Oracle8i and apply stylesheets to XML interactively. In order
to use the database conectivity feature in this program, you need to know the 
network name of the computer where Oracle8i runs, the port (usually 1521) and
the name of the oracle instance (usually orcl). You would also need an account
with create table granted. You may try the default account scott with password
tiger if it still enabled on your Oracle 8i system. 
