This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: VBScript in XSLT


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
&gt; rather than '>'

ie.
<script>
If xyz &gt; 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]