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

Re: error in javascript, that is generated from xsl

Subject: Re: error in javascript, that is generated from xsl
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 6 Mar 2002 13:29:56 -0500
exceeds the min max
[Shailesh Valvaikar]

> Thanks Tom, for pointing the errors.
> All these showed up due to lot of "trial and test" over the xsl.
> I had tried including the entities (&quot; ...) without the CDATA section.
>
> I should have been more careful before posting.
>
> But the .xsl with hardcoded values also gives a problem.

What you need to do, as Mike Kay said, is to get the OUTPUT from the
transformation, changed that so it works, and then adjust your stylesheet to
produce that same result.  You cannot expect to debug it by looking at the
stylesheet and trying to guess what it might be producing.

As for the latest version you posted,  it gives an html page that contains
at least these two errors:

1) missing quote in

var tableData=new Array("A","B","C,"D");

2) Incorrect line wrap in comment:

// reset the current if it exceeds the min-max
values

2) is an example of that thread from yesterday about controlling the format
of your generated text.  See posts with the subject

Re:  NEWLINES

With these errors corrected, the thing sort of works, although the new
tables to be displayed are only there momentarily and all the cells say
"undefined"

I recommend using Mozilla because it gives better debugging information than
IE.  In any event, you have to get correctly working html/javascript code
first, then you have to make sure that your stylesheet produces what you
expect.  This is the wrong list to learn how to fix the javascript, and you
can't expect much help here unless you can determine what the transform
really produces compared with what you need to produce.

Tom P


 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.