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

browser text output - works in FF, but not in Safari a

Subject: browser text output - works in FF, but not in Safari and Opera
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Tue, 18 Nov 2008 15:17:43 -0500
 browser text output - works in FF
Hi,

test page:
http://koberg.com/test-browser-xsl/test-transform.html
download test files:
http://koberg.com/test-browser-xsl.zip

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...)

best,
-Rob

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.