[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: OFF Subject...

Subject: Re: OFF Subject...
From: "Simon Kelly" <kelly@xxxxxxxxxx>
Date: Tue, 12 Aug 2003 10:15:00 +0200
oraclexmlquery setxslt
How are you using the XSU package?

I use it with my business logic to perform differing tasks.  Here is the
main xsu section that gets a document following a structure I define in an
xsl file and returns me a JDom document.  It is then an easy case of just
writing this document to a file. instaed of returning it to the calling
class.

I would like to know how you use the xsu to do your db actions.

Cheers

Simon

[code]
OracleXMLQuery qry = new OracleXMLQuery(this.dbConn.getConnection(),
this.sqlString);
            qry.keepObjectOpen(true);
            qry.setXSLT(new StringReader(this.xslString), null);
            Enumeration enum = this.xslParams.keys();
            while(enum.hasMoreElements()) {
                String name = (String)enum.nextElement();
                qry.setXSLTParam(name, "'" +
this.xslParams.getProperty(name) + "'");
                if(log.isDebugEnabled()) {
                    log.debug(thisClass + "::" + thisMethod + "Param name :
" + name + "Param value : " + this.xslParams.getProperty(name));
                }
            }
            XMLDocument temp = (XMLDocument)qry.getXMLDOM();
            DOMBuilder builder = new DOMBuilder();
            Element oracleElement =
builder.build(temp.getDocumentElement());

            // -- Create a return document
            Document retDoc = new Document((Element)oracleElement.clone());
[/code]


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.