|
Subject: RE: [xsl] VBScript in XSLT From: timw@xxxxxxx Date: Mon, 24 Sep 2001 17:01:36 +1000 |
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@xxxxxxxxxxx]
> Sent: Monday, 24 September 2001 4:31 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] VBScript in XSLT, Sheryl Cia | Thread | [xsl] Converting number to ASCII-ch, Mengel Andre (FV/SLM |
| [xsl] VBScript in XSLT, Sheryl Cia | Date | RE: [xsl] RE: Re: xsl:element, Michael Kay |
| Month |