File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it too hard for you to find a solution????????

 
Christian Luneborg
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you place a javascript document into XSL (or XML) to display a DynamicHTML page? I tried to place it in the XSL document by using -
<script language="JavaScript">
<xsl:jscript>
*** codes here ***
</xsl:jscript>
</script>
It seems it doesn't work.
Please see it at http://www.magnixsolutions.com/dev/eplusware/testeplus1.html
XML/XSL file -
../eplusdoc.xml
../eplusstyle.xsl
Thanks alot!
Christian
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually people put JavaScripts in XSLT document inside CDATA sections, so you do not need to escape & and < symbols.
<script language="JavaScript">
<xsl:comment>
<![CDATA[
your script here
]]>
</xsl:comment>
</script>

[This message has been edited by Mapraputa Is (edited June 01, 2001).]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic