Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet version="2.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msxsl="urn:schemas-microsoft-com:xslt"
- xmlns:jscript="http://jscript.org">
- <xsl:output method="html" omit-xml-declaration="yes" indent="yes" exclude-result-prefixes="msxsl jscript"/>
- <msxsl:script language="JavaScript" implements-prefix="jscript">
- <![CDATA[
- public function test()
- {
- console.log('2');
- }
- ]]>
- </msxsl:script>
- <xsl:variable name="merged_xml_file" select="doc('xml_docs/test.xml')"/>
- <xsl:template match="/">
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>XSLT</title>
- </head>
- <body>
- <div class="main_container" onclick="jscript:test()">Test</div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement