[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JavaScript problems in my XSL file

Subject: Re: JavaScript problems in my XSL file
From: "Perry Molendijk" <p_molendijk@xxxxxxxxxxx>
Date: Sun, 05 Nov 2000 17:34:24 GMT
hotmail javascript problems
besides using &lt; you could write your entire javascript inside a CDATA section:

<![CDATE[
for (i=0; i<6; i++)
]]>

if you need to insert information from your source xml file just close the cdata section and open it again afterwards:

<![CDATE[
for (i=0; i<6; i++)
]]>
<xsl:value-of select="someTag"/>
<![CDATE[
more script...
]]>


Perry



From: "Ken Dickerson" <kdicke@xxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: <XSL-List@xxxxxxxxxxxxxxxx>
Subject: JavaScript problems in my XSL file
Date: Fri, 3 Nov 2000 17:02:59 -0400 (EST)

I have an XSL file that I use to display my XML data. The XSL file contains
some JavaScript. I have not been having troubles using JavaScript within the
XML file until I added a for loop. The for loop loops like: for (i=0; i<6;
i++)... When I try to load my pages, I get an error at the 6. I believe the
error is that XSL is trying to create a tag from the lessthan sign. How can
I get XSL to understand that this is code and not some tagging? I am using
the namespace "http://www.w3.org/1999/XSL/Transform". I have defined my
script block with LANGUAGE="JavaScript" inside the HEAD block which is
inside the <xsl:template match="/"> block.


I have gotten it to work when I replace the < sign with &lt; which is pretty
ugly!


TIA,
- Ken < ><
(email: Ken.Dickerson@xxxxxxxxxxx)




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.