Subject: Re: [xsl] Javascript inside XSL(Just when I think I understand) From: "Robert Koberg" <rob@xxxxxxxxxx> Date: Wed, 30 Jan 2002 18:09:44 -0800 |
have you created HTML that works? try that and adjust your XSL accordingly. best, -Rob ----- Original Message ----- From: "Gene LaCava" <e.f.lacava@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, January 30, 2002 6:03 PM Subject: Re: [xsl] Javascript inside XSL(Just when I think I understand) > 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: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Javascript inside XSL(Jus, Gene LaCava | Thread | Re: [xsl] Javascript inside XSL(Jus, Thomas B. Passin |
Re: [xsl] Javascript inside XSL(Jus, Gene LaCava | Date | Re: [xsl] XSL:FO, Christopher R. Maden |
Month |