file_xslt_inherits_csp.xsl (819B)
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"> 2 <xsl:output method="html"/> 3 <xsl:variable name="title" select="/root/t"/> 4 <xsl:template match="/"> 5 <html> 6 <head> 7 <title> 8 <xsl:value-of select="$title"/> 9 </title> 10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 11 </head> 12 <body> 13 <p> 14 Below is some inline JavaScript generating some red text. 15 </p> 16 17 <p id="bug"/> 18 <script> 19 document.body.append("JS DID EXCECUTE"); 20 </script> 21 22 <a onClick='document.body.append("JS DID EXCECUTE");' href="#">link with lineOnClick</a> 23 </body> 24 </html> 25 </xsl:template> 26 </xsl:stylesheet>