RE: [xsl] question about javascript and XSL

Subject: RE: [xsl] question about javascript and XSL
From: Simon Choy <Simon.Choy@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 7 May 2002 11:05:30 -0700
<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns:xsl="";>
<script language="Javascript">
if ( 1 > 1 )

well this is an XSL file that's used to display information about an XML
please imaging there are xSL codes within there

I am sure that my XSL code isn't causing the problem

but the
if (1 > 1 ) part is

the error it is giving me is 
"A RunTime erro has occured. Do you wish to Debug?
Error: Expected ')'

and if i debug, line 3 is the line just above 
if (1 > 1)

if i replace

1 > 1


1 == 1

everything is fine

any insight?

ps. both ( 1 > 1 ) AND ( 1 < 1 ) don't work

-----Original Message-----
From: Greg Faron [mailto:gfaron@xxxxxxxxxxxxxxxxxx]
Sent: Tuesday, May 07, 2002 10:51 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] question about javascript and XSL

At 11:39 AM 5/7/2002, you wrote:
>I know this has been asked before, but i've searched through many postings
>and I still cannot find an answer to this
>The follow code looks syntatically correct
>however, the < is still giving me error!
>can anyone spot the reason??
><?xml version="1.0" encoding="ISO-8859-1"?>

   You mention JavaScript in the subject line, but I don't see any of that 
(or any XSL for that matter).  If it's complaining on the line that you 
posted, I would recommend that you ensure that there is NO whitespace 
before the XML declaration.

   If there's a complaint from an area where you do a common JavaScript 
comparison (for example, "i < 100"), reverse the comparison ("100 > 
i").  If that's not the problem, post more code.

Greg Faron
Integre Technical Publishing Co.

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread