XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Edward BrodeSubject: Javascript De-bugging
Author: Edward Brode
Date: 10 Apr 2002 03:41 AM
In September, Mr. Innocenti mentioned that de-bugging of scripts would become available in an upcoming beta release. Has this happened and I can't find it? Or...

Anyway, we are using javascript to generate XSL templates and vice-versa, and would really appreciate any ability to do this.

Regards,

Edward Brode

Postnext
(Deleted User) Subject: Re: Javascript De-bugging
Author: (Deleted User)
Date: 10 Apr 2002 05:20 AM
At 03.52 10/04/2002 -0400, you wrote:
>From: "Edward Brode"
>
>In September, Mr. Innocenti mentioned that de-bugging of scripts would
>become available in an upcoming beta release. Has this happened and I
>can't find it? Or...


Hi Edward,
you can debug javascript embedded inside an msxsl:script tag (where the
prefix msxsl has been associated to the URI urn:schemas-microsoft-com:xslt)
using both Stylus 3.1 (bl69) and Stylus 4.0 beta (bl83).
What version are you using?

As an example, in the following stylesheet you can place a breakpoint at
the line "var dToday=new Date()" and the execution will stop properly.


xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:user-namespace-here"
version="1.0">
function daysFromPub(nodelistBook) {
var dToday = new Date();
var nodeBook = nodelistBook.item(0);
var sPublishDate =
nodeBook.selectSingleNode("publish_date").text;
var nYear = Number(sPublishDate.substr(0,4));
var nMonth = Number(sPublishDate.substr(5,2)) -
1; // months are from 0 to 11
var nDay = Number(sPublishDate.substr(8,2));

var MinMilli = 1000 * 60; //Initialize
variables.
var HrMilli = MinMilli * 60;
var DyMilli = HrMilli * 24;

var dPublish = new Date(nYear, nMonth, nDay);

return String(Math.round((dToday - dPublish) /
DyMilli));
}
]]>








select="user:daysFromPub(.)" data-type="number"/>





TitleDays
from publication
select="title"/> select="user:daysFromPub(.)"/>








A sample XML for the previous stylesheet could be




Gambardella, Matthew

Computer
44.95
2000-10-01
An in-depth look at creating applications
with XML.





Alberto

Postnext
Edward BrodeSubject: Re: Javascript De-bugging
Author: Edward Brode
Date: 14 May 2002 03:52 AM
Hi Alberto,

I was away on holiday, so I missed your
follow-up until now. The code in your
message is only readable when I do view
source, since IE 5.5 is processing the style
sheet that you provide, but saving the
results of view source and removing all the

tags gave me something I could cut and paste into Stylus Studio (4.0 Beta build 083c). I wasn't able to see anything happening in terms of stopping execution by placing a breakpoint where you suggest, neither by pressing F5 to start de-bugging, nor by clicking on the little green "play" arrow. When I press F5, I get output as HTML code in the XSLT preview window, and clicking the green arrow produces viewable HTML in the XSLT preview window, both, as mentioned without any pause in execution. Perhaps I am using the wrong debugger, and there are separate ones for xsl and scripts? I can get de-bugging of the xsl to work fine, although it would be nice to see the output accumulate as viewable HTML or at least have the output HTML code word-wrap so that the output isn't appearing somewhere off the page to the right :) Anyway, many thanks to you chaps for being so accessible! Edward

Postnext
(Deleted User) Subject: Re: Javascript De-bugging
Author: (Deleted User)
Date: 14 May 2002 10:53 AM
Edward,
I am able to place a breakpoint in the script, and it gets hit when processing is started using F5.
Maybe you don't see this because the stylesheet needs an XML document with a "book" element before it tries to execute the script.

Try with the pair of files I have attached to this message.

Hope this helps,
Alberto


Documentbook-jscript.xsl
XSL stylesheet

Documentbooks5.xml
XML document

Postnext
Edward BrodeSubject: Re: Javascript De-bugging
Author: Edward Brode
Date: 15 May 2002 07:30 AM
Alberto,

No, it doesn't happen for me using your files either. If I put a break point inside the function declaration, like at the return statement, or at one of the var declarations, and press F5, the whole style-sheet executes and I get the entire table visible in the XSLT Preview window. It is only when I put a break point inside the root template within the body of the xsl that I get a hit, and even then it only steps through the xsl, as far as I can see. The little gold arrow that shows up when there is a break point in the xsl doesn't appear by a break point in the jscript.

I would expect from using other debuggers that we would see the gold indicator hop into the function each time it is called when stepping into the line that calls it, and then come back out to the body of the xsl when the function returns.

I am using the built-in processor, trying to use anything else causes errors or messages that "only the built-in processor can be used for XSLT de-bugging".

Edward

Postnext
Ivan PedruzziSubject: RE: Javascript De-bugging
Author: Ivan Pedruzzi
Date: 15 May 2002 09:53 AM

Edward,

Could you tell us more about your configuration ?

- Stylus Version
- OS
- IE


Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com



> -----Original Message-----
> From: stylus-studio-faq Listmanager [mailto:listmanager]
> Sent: Wednesday, May 15, 2002 7:43 AM
> To: Recipients of 'stylus-studio-faq' suppressed
> Subject: Re: Javascript De-bugging
>
>
> From: "Edward Brode"
>
> Alberto,
>
> No, it doesn't happen for me using your files either. If I
> put a break point inside the function declaration, like at
> the return statement, or at one of the var declarations, and
> press F5, the whole style-sheet executes and I get the entire
> table visible in the XSLT Preview window. It is only when I
> put a break point inside the root template within the body of
> the xsl that I get a hit, and even then it only steps through
> the xsl, as far as I can see. The little gold arrow that
> shows up when there is a break point in the xsl doesn't
> appear by a break point in the jscript.
>
> I would expect from using other debuggers that we would see
> the gold indicator hop into the function each time it is
> called when stepping into the line that calls it, and then
> come back out to the body of the xsl when the function returns.
>
> I am using the built-in processor, trying to use anything
> else causes errors or messages that "only the built-in
> processor can be used for XSLT de-bugging".
>
> Edward
>
>
>
> To reply: mailto:stylus-studio-faq.5081@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
Ivan PedruzziSubject: RE: Javascript De-bugging
Author: Ivan Pedruzzi
Date: 20 May 2002 06:54 PM
Hi Edward,

Sorry if took me so long to answer. The only reason stylus is not able to debug scripts is because the Microsoft Script Debugger is not installed.

You can download the Script Debugger from here:
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/731/msdncompositedoc.xml

Hopes this help
Ivan

Postnext
(Deleted User) Subject: AW: Javascript De-bugging
Author: (Deleted User)
Date: 21 May 2002 02:20 AM
Hi Ivan!

Can you tell us which components stylus stuido needs for running. I know I
need Java, MSIE, ScriptDebugger .... ???? (If possible with the minimum
version of the component/product.)

Thank you

Chris

Christian Cigler, Ing.
Technology & Project Division

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
GLOBEX Engineering GmbH (EMEA)
We put (e)Business in front of Technologies & Distribution
Theresiengasse 21, 2380 Perchtoldsdorf/Vienna - Austria/Europe
Fon:+43/1/8657410-0 Fax:+43/1/8657410-190 http://www.globex.at

Services & Technologies focusing on Vision-To-Results and
eXcellence < MEGA - META - ObjectDesign - eXcelon > Xsuite!
---------------------------------------------------------------
> eXpanding to New Markets............ http://www.globex-us.com
> integration-interaction-information .... http://www.globex.at
> ePortal, eContent, eBusiness, eMarket . http://www.xsuite.net


-----Ursprüngliche Nachricht-----
Von: stylus-studio-faq Listmanager [mailto:listmanager@exln.com]
Gesendet: Dienstag, 21. Mai 2002 01:07
An: Recipients of 'stylus-studio-faq' suppressed
Betreff: RE: Javascript De-bugging


From: "Ivan Pedruzzi"

Hi Edward,

Sorry if took me so long to answer. The only reason stylus is not able to
debug scripts is because the Microsoft Script Debugger is not installed.

You can download the Script Debugger from here:
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?ur
l=/msdn-files/027/001/731/msdncompositedoc.xml

Hopes this help
Ivan



To reply: mailto:stylus-studio-faq.5111@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN

Postnext
Ivan PedruzziSubject: RE: Javascript De-bugging
Author: Ivan Pedruzzi
Date: 21 May 2002 10:51 AM


> -----Original Message-----
> From: stylus-studio-faq Listmanager [mailto:listmanager]
> Sent: Tuesday, May 21, 2002 2:32 AM
> To: Recipients of 'stylus-studio-faq' suppressed
> Subject: AW: Javascript De-bugging
>
>
> From: "Christian Cigler"
>
> Hi Ivan!
>
> Can you tell us which components stylus stuido needs for running. I know I
> need Java, MSIE, ScriptDebugger .... ???? (If possible with the minimum
> version of the component/product.)

Christian,

Stylus requires:

JRE 1.2.2 or greater for running Java extensions and for using the
format-number function
JDK 1.2.2 (+ JPDA) or greater for developing/debugging Java extensions
MS IE 5.5 or greater
MS Script Debugger 1.0 for debugging MS script extensions (msxsl:script)


Ivan Pedruzzi
eXcelon corp.
http://www.stylusstudio.com



>
> Thank you
>
> Chris
>
> Christian Cigler, Ing.
> Technology & Project Division
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> GLOBEX Engineering GmbH (EMEA)
> We put (e)Business in front of Technologies & Distribution
> Theresiengasse 21, 2380 Perchtoldsdorf/Vienna - Austria/Europe
> Fon:+43/1/8657410-0 Fax:+43/1/8657410-190 http://www.globex.at
>
> Services & Technologies focusing on Vision-To-Results and
> eXcellence < MEGA - META - ObjectDesign - eXcelon > Xsuite!
> ---------------------------------------------------------------
> > eXpanding to New Markets............ http://www.globex-us.com
> > integration-interaction-information .... http://www.globex.at
> > ePortal, eContent, eBusiness, eMarket . http://www.xsuite.net
>
>
> -----Ursprüngliche Nachricht-----
> Von: stylus-studio-faq Listmanager [mailto:listmanager@exln.com]
> Gesendet: Dienstag, 21. Mai 2002 01:07
> An: Recipients of 'stylus-studio-faq' suppressed
> Betreff: RE: Javascript De-bugging
>
>
> From: "Ivan Pedruzzi"
>
> Hi Edward,
>
> Sorry if took me so long to answer. The only reason stylus is not able to
> debug scripts is because the Microsoft Script Debugger is not installed.
>
> You can download the Script Debugger from here:
> http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sam
ple.asp?ur
l=/msdn-files/027/001/731/msdncompositedoc.xml

Hopes this help
Ivan



To reply: mailto:stylus-studio-faq.5111@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN



To reply: mailto:stylus-studio-faq.5112@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN

Posttop
(Deleted User) Subject: AW: Javascript De-bugging
Author: (Deleted User)
Date: 22 May 2002 01:33 AM
Thank you!

Chris

Christian Cigler, Ing.
Technology & Project Division

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
GLOBEX Engineering GmbH (EMEA)
We put (e)Business in front of Technologies & Distribution
Theresiengasse 21, 2380 Perchtoldsdorf/Vienna - Austria/Europe
Fon:+43/1/8657410-0 Fax:+43/1/8657410-190 http://www.globex.at

Services & Technologies focusing on Vision-To-Results and
eXcellence < MEGA - META - ObjectDesign - eXcelon > Xsuite!
---------------------------------------------------------------
> eXpanding to New Markets............ http://www.globex-us.com
> integration-interaction-information .... http://www.globex.at
> ePortal, eContent, eBusiness, eMarket . http://www.xsuite.net


-----Ursprüngliche Nachricht-----
Von: stylus-studio-faq Listmanager [mailto:listmanager@exln.com]
Gesendet: Dienstag, 21. Mai 2002 17:03
An: Recipients of 'stylus-studio-faq' suppressed
Betreff: RE: Javascript De-bugging


From: "Ivan Pedruzzi"



> -----Original Message-----
> From: stylus-studio-faq Listmanager [mailto:listmanager]
> Sent: Tuesday, May 21, 2002 2:32 AM
> To: Recipients of 'stylus-studio-faq' suppressed
> Subject: AW: Javascript De-bugging
>
>
> From: "Christian Cigler"
>
> Hi Ivan!
>
> Can you tell us which components stylus stuido needs for running. I know I
> need Java, MSIE, ScriptDebugger .... ???? (If possible with the minimum
> version of the component/product.)

Christian,

Stylus requires:

JRE 1.2.2 or greater for running Java extensions and for using the
format-number function
JDK 1.2.2 (+ JPDA) or greater for developing/debugging Java extensions
MS IE 5.5 or greater
MS Script Debugger 1.0 for debugging MS script extensions (msxsl:script)


Ivan Pedruzzi
eXcelon corp.
http://www.stylusstudio.com



>
> Thank you
>
> Chris
>
> Christian Cigler, Ing.
> Technology & Project Division
>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> GLOBEX Engineering GmbH (EMEA)
> We put (e)Business in front of Technologies & Distribution
> Theresiengasse 21, 2380 Perchtoldsdorf/Vienna - Austria/Europe
> Fon:+43/1/8657410-0 Fax:+43/1/8657410-190 http://www.globex.at
>
> Services & Technologies focusing on Vision-To-Results and
> eXcellence < MEGA - META - ObjectDesign - eXcelon > Xsuite!
> ---------------------------------------------------------------
> > eXpanding to New Markets............ http://www.globex-us.com
> > integration-interaction-information .... http://www.globex.at
> > ePortal, eContent, eBusiness, eMarket . http://www.xsuite.net
>
>
> -----Ursprüngliche Nachricht-----
> Von: stylus-studio-faq Listmanager [mailto:listmanager@exln.com]
> Gesendet: Dienstag, 21. Mai 2002 01:07
> An: Recipients of 'stylus-studio-faq' suppressed
> Betreff: RE: Javascript De-bugging
>
>
> From: "Ivan Pedruzzi"
>
> Hi Edward,
>
> Sorry if took me so long to answer. The only reason stylus is not able to
> debug scripts is because the Microsoft Script Debugger is not installed.
>
> You can download the Script Debugger from here:
> http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sam
ple.asp?ur
l=/msdn-files/027/001/731/msdncompositedoc.xml

Hopes this help
Ivan



To reply: mailto:stylus-studio-faq.5111@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN



To reply: mailto:stylus-studio-faq.5112@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN




To reply: mailto:stylus-studio-faq.5115@edn.exceloncorp.com
To start a new topic: mailto:stylus-studio-faq@edn.exceloncorp.com
To login: http://edn.exceloncorp.com/~SSDN

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.