wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Is it too hard for you to find a solution???????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Is it too hard for you to find a solution????????" Watch "Is it too hard for you to find a solution????????" New topic
Author

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

Christian Luneborg
Greenhorn

Joined: May 31, 2001
Posts: 2
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

Joined: Aug 26, 2000
Posts: 10065
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).]


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it too hard for you to find a solution????????
 
Similar Threads
XML/XSL Transformation to HTML problem
Placing Javascript doc. in XSL or XML?
Use different XSL files on the same XML doc
javascript in XSL
Parsing XML in Javascript