View Full Version : XSLT automatically client side
how can I make an XSLT Transformation client side automatically ??
Thanx for any help !
Include the following at the top of your XML pages (after the xml prologue, if you have one):
<?xml-stylesheet type="text/xsl" href="blabla.xml"?>
Although there is no text/xsl mime-type, as I understand it IE requires it to be specified. For other browsers, the mime-type of the actually stylesheet takes precedence, so it all works out. Your XSLT document should be served with a mime-type of application/xml or text/xml, btw.
Thanx for your reply.
I think I have to subscribe my problem more detailed.
I´m trying to generate an SVG File dynamically. On a HTML-File, a user can choose his XML-File, and the browser (in this case the IE) transforms the XML to SVG.
My Idea: Load the XML File, parse it, read the nodes, an transform the selected nodes with saxon to an SVG-File.
My scriptcode till now:
// here I need to transform dynamically with saxon to SVG
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.