This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: VBScript in XSLT
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] VBScript in XSLT
- From: timw at 3d3 dot com
- Date: Mon, 24 Sep 2001 17:01:36 +1000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Yes.
You can include javascript or VBscript in your html output.
Just include it as you want it to be displayed as,
ie.
<script>
function openWindow(url){
newWindow = window.open(url, 'newWindow',
'menubar=no,location=no,scrollbars=yes,status=no,resizable=yes,width=640,hei
ght=480,alwaysRaised')
newWindow.focus()
}
</script>
But ensure that you escape charactors which would cause problems - ie use
> rather than '>'
ie.
<script>
If xyz > 1 ...
</script>
rather than
<script>
If xyz > 1 ...
</script>
You can also use <xsl:text disable-output-escaping="yes"><![CDATA[ "your
code in here" ]]></xsl:text> if you have a lot of charactors and don't want
to escape them all
hope that helps,
Tim
> -----Original Message-----
> From: Sheryl Cia [mailto:lyrehscg@hotmail.com]
> Sent: Monday, 24 September 2001 4:31 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] VBScript in XSLT
>
>
>
> Hi everybody,
>
> Just want to ask about VBScripts or Javascripts.
> Is it possible to incorporate vbscript in xsl file?
> so that when my xml file is transformed into html output,
> it is already incorporated.
> If yes, how will i incorporated it?
>
> thanks,
> yey:)
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list