xsl-list
[Top] [All Lists]

RE: [xsl] Modern web site design with XML and XSLT

2010-01-06 13:38:14
Quick off-topic question on this note - does anyone know what non-Mozilla 
browsers return for a transformToDocument call from a processor with 
<xsl:output method="text"/>? I can't imagine it'd be a <transformiix:result> 
node for non-Transformiix processors, but other browsers seem to have followed 
Mozilla's Javascript XSLTProcessor() implementation down to the letter, so I'm 
curious what they do in this case. (Is there an official W3C recommendation for 
the XSLTProcessor interface yet?)

~ Scott

-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk] 
Sent: Wednesday, January 06, 2010 12:25 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Modern web site design with XML and XSLT



Unless someone knows of a browser that supports <xsl:output/> ?

firefox supports it if transform is intiated from javascript, not sure
of xml-stylesheet pi

https://developer.mozilla.org/en/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations

var newDocument = processor.transformToDocument(domToBeTransformed);

The resultant object is an HTMLDocument if the output method of the
stylesheet is html, an XMLDocument for xml, and for output method text
an XMLDocument with a single root element <transformiix:result> with the
text as a child. 

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--