javascript - XSL stylesheet active content being blocked by browser -


hi have xsl stylesheet using transform xml document see so question transform works beautifully, treeview expands , collapses when user clicks on nodes advertised. on of client machines i've run on has active content disabled (ie8/9), message being

ie has restricted file showing active content...

it's easy enough click allow blocked content... on machines in question cannot(absolutely) must not done. it's verboten. can't go changing browser settings question how can around without changing browser settings.

can transform on "server side" using lxml transform xml like

import lxml.etree et dom = et.parse(xml_filename) xslt = et.parse(xsl_filename) transform = et.xslt(xslt) newdom = transform(dom) print(et.tostring(newdom, pretty_print=true)) 

will allow resulting xml shown on client machine remain dynamic? need fire little python webserver? suggestions welcome

my question how can around without changing browser settings.

use self-contained stylesheet. example:

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="html5.xml"?> <xsl:stylesheet version="1.0"                 xmlns:xsl="http://www.w3.org/1999/xsl/transform"                 xmlns="http://www.w3.org/1999/xhtml"                 > <xsl:output method="xml" encoding="utf-8" version="" indent="yes" standalone="no" media-type="text/html" omit-xml-declaration="no" doctype-system="about:legacy-compat" />  <xsl:template match="xsl:stylesheet">   <xsl:apply-templates/> </xsl:template>  <xsl:template match="/">   <html>     <head>       <meta http-equiv="content-type" content="text/html;charset=utf-8" />     </head>     <body>       these<br/>words<br/>are<br/>seperated<br/>by<br/>brs     </body>   </html> </xsl:template>  </xsl:stylesheet> 

this self-contained stylesheet works when saved html5.xml.

references


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -