Discuss this tutorial. Printable version (PDF).
Go to Contents page. Go to previous page. Go up a level. Go to next page.

 

 

Setup


This section explains the steps to install and configure the tutorial. It assumes that you have installed and configured the software described in the Required Software section.

  1. Download treeview.jar, a compressed Java Archive containing source code and other files.

  2. Open a command window and change directories to make the download directory active. For example, if you downloaded treeview.jar to d:\tutorials, change directories to d:\tutorials.

  3. Make sure that the executable file jar.exe (included with the Java 2 Platform) is in your environment's path. For example, the following command adds the path to a jar.exe that resides in d:\jdevFolder\jdk\bin.

    set path=%path%;d:\jdevFolder\jdk\bin

  4. From the command line, enter the following to unpack the archive. This command creates a directory named ex20030215_treeview that contains subdirectories and source files.

    jar -xvf treeview.jar

  5. Change directories to make the ex20030215_treeview\src directory active.

    cd ex20030215_treeview\src

  6. Set your CLASSPATH to include the path to your Java compiler (javac.exe) and the path to the Oracle XML Parser library (xmlparserv2.jar). For example,
    set CLASSPATH=.;..;d:\jdevFolder\jdk\bin;d:\jdevFolder\lib\xmlparserv2.jar
  7. Enter the following command to invoke the XDK tool that takes an XML document (po1_ann.xml) and applies an XSL stylesheet (treeview.xsl) to generate an HTML file (result.html).

    java oracle.xml.parser.v2.oraxsl po1_ann.xml treeview.xsl result.html

  8. Now you can load the generated HTML file (result.html) in a Web browser to display the results of the processing.

Discuss this tutorial. Printable version (PDF).
Go to Contents page. Go to previous page. Go up a level. Go to next page.

 

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy