Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.75 KB | None | 0 0
  1. <xsl:stylesheet version="2.0"
  2.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.     xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  4.     xmlns:jscript="http://jscript.org">
  5.     <xsl:output method="html" omit-xml-declaration="yes" indent="yes" exclude-result-prefixes="msxsl jscript"/>
  6.     <msxsl:script language="JavaScript" implements-prefix="jscript">
  7.     <![CDATA[  
  8.     public function test()
  9.     {
  10.         console.log('2');
  11.     }
  12.     ]]>
  13.     </msxsl:script>
  14.  
  15.     <xsl:variable name="merged_xml_file" select="doc('xml_docs/test.xml')"/>
  16.     <xsl:template match="/">
  17.         <html>
  18.             <head>
  19.                 <meta charset="utf-8"/>
  20.                 <title>XSLT</title>
  21.             </head>
  22.             <body>
  23.                 <div class="main_container" onclick="jscript:test()">Test</div>
  24.             </body>
  25.         </html>
  26.     </xsl:template>
  27. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement