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

Re: browser text output - works in FF, but not in Safa

Subject: Re: browser text output - works in FF, but not in Safari and Opera
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Tue, 18 Nov 2008 15:31:50 -0500
Re:  browser text output - works in FF
I forgot to mention that you need firebug to see the output in Firefox and use the error console for Safari, Opera, IE. (For Safari you have to enable it in Preferences, Advanced.)


On Nov 18, 2008, at 3:17 PM, Robert Koberg wrote:


test page:
download test files:

Does anyone have any familiarity with browser transformations that have xsl:output method="text"? (actually a JSON string)

The transform works for me in Firefox (3.0.4), but not in Safari (3.2) or Opera (9.61). It also works with all processors that oXygen makes available to me on OSX. (don't have a windows machine handy...)

I am using Sarissa and the transformToFragment method of the XSLTProcessor object. I have tried transformToDocument which also does not work in Safari or Opera. It does give a result in FF, but wraps it in a (transformix) root element.

For transformToFragment, I am passing the HTML page's document object as the second argument (the owner document), though the comments in the code say:

"The xsl:output method must match the nature of the owner document (XML/HTML)."

How do you do that with text? In addition to the HTML Document as the parent, I have also tried by passing an XML Documen (created via 'var parentDoc = Sarissa.getDomDocument();'). This doe snot work either.

Anyone able to do this and if so how? (could have sworn I have done this before...)


Current Thread


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.
First Name
Last Name
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.