[Dojo-interest] dojo.xml.XlsTransform feature request

Joerg-D Schneider joerg-d.schneider at db.com
Thu Jan 25 05:18:22 MST 2007


Hi Rob,

>I think it is a bad decision to have your stylesheet tightly coupled with 
 
>your instance document. You will run into problems.

I don't think so - we have around 12-15 applications using hundreds of 
different xml documents / stylesheets following this approach and did not 
run into problems for the last 4 years. Since we anyway create most of the 
xml documents dynamically on the server, we usually assign the correct 
stylesheet on the server. 

>But you would still need to instantiate the XslTransform, right? But 
>anyway, doesn't simply parsing the XML instance invoke the transform? Why 
 
>do you need to parse out the PI attribute value?

I don't think that there is a need to instantiate the XslTransform object. 
To be honest, not having to instantiate the XslTransform would be a 
benefit if you just want to transform a xml containing information about 
what stylesheet to use.
The way the current implementation works, I need to know the stylesheet 
URL before I can instantiate the XslTransform object and afterwards I call 
one of its transform method passing in the xml to be transformed. I'd 
think it would be handy, to directly call one of the transformation 
methods just giving an xml and I'm done. Anyhow, I understood that 
apparently we do not share the same opinion about that :-)
I don't get your point regarding the simple parsing of an XML instance 
would trigger a transformation - if I load an xml document via javascript 
that contains a xsl stylehsheet PI nothing will happen - what is your 
expectation in this respect ? If it would be automatically transformed by 
the browser, what is the dojo.xml.XslTransform package purpose then ? If 
you want to have it transformed within your javascript you will need to 
initiate a xsl transformation yourself. This is different if such an xml 
is loaded by the browser (not by javascript means) - then the xml is 
transformed automatically using the implied stylesheet.


Mit freundlichen Grüßen / Kind regards

Joerg Schneider
Domestic Custody Services - IT (DCS- IT)
Deutsche Bank AG
Tel : +49 (69) 910 64186
Fax : +49 (69) 910 69817



--

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070125/1123bc87/attachment.html


More information about the Dojo-interest mailing list