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

Re: XML to WML using Oracle XSLT and Nokia

Subject: Re: XML to WML using Oracle XSLT and Nokia
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Fri, 30 Jun 2000 14:21:39 -0700
oracle wml
| Does anyone have a very simple example of an XSLT which will produce WML
| output readable by the Nokia phone emulator when run on the Oracle parser?

You do :-) you just need to use the API I highlight below which
lets the XSLT Processor do the serialization...

| Now you might think including the line:
| omit-xml-declaration="no"     

This will work, too. Read on...

Alex,

You must be using the wrong API for the Oracle XSLT Processor.
We fully support <xsl:output> but it only has a chance
to have its "output hints" be obeyed if you allow the
XSLT Processor itself to do the serialization of the
result tree.

I'd be willing to wager that you're calling:

   DocumentFragment df = xslProcess.process(myStyle,mySource);

and then doing a:

   ((XMLDocumentFragment)df).print(response.getWriter());

This means the XML Parser is doing the serialization and
not the XSLT Processor. What you want is:

 xslProcess.process(myStyle,mySource, response.getWriter());

Which let's the XSLT Processor do the writing.

Your WML should be cookin' with this tip... We've got
many demos using stylesheet's like the one you show here.
______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
Business Components for Java & XSQL Servlet Development Teams
Oracle Rep to the W3C XSL Working Group
Author "Building Oracle XML Applications", O'Reilly, Oct 2000


 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.