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

Re: Javascript inside XSL(Just when I think I understa

Subject: Re: Javascript inside XSL(Just when I think I understand)
From: "Gene LaCava" <e.f.lacava@xxxxxxxxxxx>
Date: Wed, 30 Jan 2002 21:03:43 -0500
1072896766
Can anyone help me I'm really at a loss.....
I have narrowed my error down to this chunk of javascript code  inside my
XSL file... The orginal message is below....The error is the same

Error loading XSL Document :
----------------------------
Error Code : -1072896766
Reason : A string literal was expected, but no opening quote character was
found.

BAD CODE SEGMENT

<table width="673" border="0" align="center" cellspacing="0"
cellpadding="0">
 <tr align="CENTER" valign="middle">
 <td class="gntabon" height=20><a href="http://townhome">Home</a></td>
 <td width="1"></td>
 <td class="gntab">
    <a href="../government/" name="cm1A" id="cm1A"
onmouseover="ShowLayer('cm1',event)"
onmouseout="OutLayer();">Government</a></td>
 <td width="1"></td>
 <td class="gntab">
    <a href="../departments/" name="cm2A" id="cm2A"
onmouseover="ShowLayer('cm2',event)"
onmouseout="OutLayer();">Departments</a></td>
 <td width="1"></td>
 <td class="gntab">
    <a href="../committees/" name="cm3A" id="cm3A"
onmouseover="ShowLayer('cm3',event)"
onmouseout="OutLayer();">Committees</a></td>
 <td width="1"></td>
 <td class="gntab"><a href="../calendar/" name="cm4A" id="cm4A"
>Calendar</a></td>
 <td width="1"></td>
 <td class="gntab"><a href="../contactus/" name="cm5A" id="cm5A" >Contact
Us</a></td>
 <td width="1"></td>
 <td class="gntab"><a href="../forms/" name="cm6A" id="cm6A" >Forms</a></td>
 <td width="1"></td>
 </tr>
</table>



----- Original Message -----
From: "Gene LaCava" <e.f.lacava@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, January 30, 2002 3:25 PM
Subject:  Javascript inside XSL(Just when I think I understand)


> I have added some javascript inside my XSL file because I'm doing some
pull
> down menus.  As soon as I added the script I got the following error
message
>
> Error loading XSL Document :
> ----------------------------
> Error Code : -1072896766
> Reason : A string literal was expected, but no opening quote character was
> found.
>
> I know the XSL File and Jscript work because they work perfectly in test
> programs Ive writtent, now I'm trying to bring them together.  Anyone have
> any ideas ?
>
> Thank You
> <?xml version="1.0"  ?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html" />
> <xsl:variable name="hours" select="document('DeptHours.xml')"/>
> <xsl:param name="id"/>
> <xsl:template match="dataroot">
>
>
> <HTML>
> <script language="JavaScript1.2">
> <!--
> var aname='pull';
> var NS4 = (document.layers) ? 1 : 0;
> var IE = (document.all) ? 1 : 0;
> var DOM = (parseInt(navigator.appVersion) >=5) ? 1 : 0;
> var MAC = ((navigator.appVersion.indexOf("PPC") >0) ||
> (navigator.appVersion.indexOf("Mac") >0)) ? 1 : 0;
>
> //global nav
>  function ShowLayer(){return};
>  function OutLayer(){return};
> if (document.layers) {
>   appVer = navigator.appVersion.substring(0,4);
>   if (appVer < 4.06) NS4 = 0;
> }
> if (NS4 || IE || DOM) globalPulldown = 1;
> if (!globalPulldown) event = null;
> //-->
> </script>
>
>
>  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

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.