Running Oracle XML Java Program

In Oracle JDeveloper 11g, we can build Oracle XML DB applications in SQL, PL/SQL, and Java. In this section, let’s use a Java application as an example.

You can open the 2.XSLT2.0.prj project in this chapter’s examples. A Java program is provided to perform XSL transformation, shown as follows (XSLTTransform.java):

Listing 16-1 XSL Transformation Allowing User Inputs

package xmlbook.chp07;

import java.net.URL;

import oracle.xml.parser.v2.DOMParser;

import oracle.xml.parser.v2.XMLDocument;

import oracle.xml.parser.v2.XSLStylesheet;

import oracle.xml.parser.v2.XSLProcessor;

import oracle.xml.util.XMLUtil;

import java.io.BufferedReader;

import java.io.InputStreamReader;

public class XSLTransform {

     public static ...

Get Oracle Database 11g Building Oracle XML DB Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.