Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: newbie xsl:processing-instruction question

From: Martin Welch <a@-.->
To: NULL
Date: 9/7/2007 6:05:00 PM

Ah that's that, then.

Ok, I'll look to doing the first transform server side for the time 
being while I look into the feasability of client side chain 
transformations.

Thanks again for your help.

Martin

Martin Honnen wrote:
> Martin Welch wrote:
> 
>> I tried your javascript trick (?) and I got:
>>
>> ----
>> <?xml-stylesheet version="1.0" type="text/xsl" href="page.xslt"?>
>>
>> <result />
>> ----
>>
>> However I don't get:
>>
>> <?xml version='1.0' encoding="utf-8" ?>
> 
> That is the XML declaration and it is not part of the DOM object model 
> so you can't see that by serializing the DOM document object, whether 
> that DOM document is the result of an XSLT transformation or just a 
> static XML document.
> 
> 
> 
>> I'd hoped that the output of the transform would also be transformed 
>> into html by FireFox (which is the purpose of page.xslt):
>>
>> ------------------
>> <?xml version='1.0' encoding="utf-8" ?>
>> <?xml-stylesheet version="1.0" type="text/xsl" href="page.xslt"?>
>>
>> <result />
>> ------------------
>>
>> Can browsers perform this two stage transform?
> 
> Neither Firefox nor IE nor Opera do as far as I know, they take the 
> processing instruction in the first XML document and apply that 
> transformation and render the result. Opera and Firefox can at least 
> render it as XML while IE even treats the result of an XSLT 
> transformation as HTML, whatever the output method is.
> 
> If you want to chain transformations in the browser you have to script 
> them, Mozilla's XSLT processor API exposed to JavaScript is described 
> here: 
> <URL:http://developer.mozilla.org/en/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations> 
> 
> Opera 9 also implements that API, as will Safari 3 as far as I know.
> IE uses MSXML for XML parsing and XSLT transformations, it is also 
> scriptable but has a different API.
> 
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent