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
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
(Deleted User) Subject: XSL does not preserve string function
Author: (Deleted User)
Date: 21 Sep 2001 07:49 AM
Hello.
I am using a java class declared as a namespace. In this class, I have a method that requires a string type as a parameter,
in XSL. However, when I use the string function and do the parse, this function disappears and throws a NoSuchMethodError.

Postnext
Ivan PedruzziSubject: RE: XSL does not preserve string function
Author: Ivan Pedruzzi
Date: 21 Sep 2001 08:13 AM

Hi George,

What do you mean with "do the parse, this function disappears" ?
The XSL source is re-written only when you switch between tabs, like
when you jump from "XML Mapper" to "XSL Source"
Is the java extension call removed from the XSL Source ?
What is the java function prototype that you are trying to use ?
Can you send us a test case with your XSL and the java extension source
?


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



> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager]
> Sent: Friday, September 21, 2001 7:57 AM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: XSL does not preserve string function
>
>
> From: "George Gastaldi"
>
> Hello.
> I am using a java class declared as a namespace. In this
> class, I have a method that requires a string type as a
> parameter, in XSL. However, when I use the string function
> and do the parse, this function disappears and throws a
> NoSuchMethodError.
>
>
>
> To reply: mailto:stylus-studio-tech.3762@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-tech@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
(Deleted User) Subject: RE: XSL does not preserve string function
Author: (Deleted User)
Date: 21 Sep 2001 12:45 PM
It's not the java extension call that disappears, but the call to string() (I use it to convert a node value to a string, so I can use with no prob in my java classes).

On 9/21/01 8:13:15 AM, Ivan Pedruzzi wrote:
>
Hi George,

What do you mean
>with "do the parse, this
>function disappears" ?
The
>XSL source is re-written only
>when you switch between tabs,
>like
when you jump from "XML
>Mapper" to "XSL Source"
Is
>the java extension call
>removed from the XSL Source
>?
What is the java function
>prototype that you are trying
>to use ?
Can you send us a
>test case with your XSL and
>the java extension
>source
?


Ivan
>Pedruzzi
eXcelon
>Corporation
http://www.styluss
>tudio.com



> -----Original
>Message-----
> From:
>stylus-studio-tech Listmanager
>[mailto:listmanager]
> Sent:
>Friday, September 21, 2001
>7:57 AM
> To: Recipients of
>'stylus-studio-tech'
>suppressed
> Subject: XSL does
>not preserve string function
>
>
>
> From: "George Gastaldi"
> >r>
>
> Hello.
> I am using a
>java class declared as a
>namespace. In this
> class, I
>have a method that requires a
>string type as a
> parameter,
>in XSL. However, when I use
>the string function
> and do
>the parse, this function
>disappears and throws a
>
>NoSuchMethodError.
>
>
>
>
>To reply:
>mailto:stylus-studio-tech.3762
>@edn.exceloncorp.com
> To
>start a new topic:
>mailto:stylus-studio-tech@edn.
>exceloncorp.com
> To login:
>http://edn.exceloncorp.com/~SS
>DN
>
>




Postnext
Minollo I.Subject: RE: XSL does not preserve string function
Author: Minollo I.
Date: 21 Sep 2001 12:48 PM
At 12:52 PM 9/21/2001 -0400, you wrote:
>From: "George Gastaldi"
>
>It's not the java extension call that disappears, but the call to string()
>(I use it to convert a node value to a string, so I can use with no prob
>in my java classes).

Oh, we see what you are saying.
We'll look into it; but you shouldn't need the string() conversion
function, as the conversion should happen implicitly.

Minollo

Postnext
(Deleted User) Subject: RE: XSL does not preserve string function
Author: (Deleted User)
Date: 24 Sep 2001 07:41 AM
On 9/21/01 12:48:12 PM, Carlo Innocenti wrote:
>At 12:52 PM 9/21/2001 -0400, you
>wrote:
>From: "George Gastaldi"
>
>
>It's
>not the java extension call that
>disappears, but the call to string()
>
>(I use it to convert a node value to a
>string, so I can use with no prob
>in
>my java classes).

Oh, we see what you
>are saying.
We'll look into it; but you
>shouldn't need the string() conversion
>
function, as the conversion should
>happen implicitly.
>Minollo

I don't really believe that, because it always throw me a NoSuchMethodError when I try to run. That's pretty strange, because earlier versions of Stylus Studio did not make any changes to my code. I wonder if there is any way to don't let this happen.


Postnext
Minollo I.Subject: RE: XSL does not preserve string function
Author: Minollo I.
Date: 24 Sep 2001 09:00 AM

>...
>I don't really believe that, because it always throw me a
>NoSuchMethodError when I try to run. That's pretty strange, because
>earlier versions of Stylus Studio did not make any changes to my code. I
>wonder if there is any way to don't let this happen.

We are looking into this, and we'll find a way to fix this behavior.
Can you post the exact signature in terms of arguments and return value of
the Java method you are using?

Thanks,
Minollo

Postnext
(Deleted User) Subject: RE: XSL does not preserve string function
Author: (Deleted User)
Date: 24 Sep 2001 09:06 AM
When I try to run on command line using Xalan, the XML is generated well (Without the string() function on it), but when I try to run on Stylus Studio it keeps me bringing a screen telling "NoSuchMethodError". Guess it is something related to classpath. I will try to find the solution for it...

Postnext
Minollo I.Subject: RE: XSL does not preserve string function
Author: Minollo I.
Date: 24 Sep 2001 09:11 AM

>When I try to run on command line using Xalan, the XML is generated well
>(Without the string() function on it), but when I try to run on Stylus
>Studio it keeps me bringing a screen telling "NoSuchMethodError". Guess it
>is something related to classpath. I will try to find the solution for it...

As I mentioned in my previous post, unless Stylus Studio is loading a
different version of the same class, the problem seems to be related to the
method signature or to the way the method is being invoked.
It would help knowing the method Java signature and the details of how you
are invoking it.

Minollo

Postnext
(Deleted User) Subject: RE: XSL does not preserve string function
Author: (Deleted User)
Date: 24 Sep 2001 09:18 AM
I am using as follow:



MlbUtil is my java class. It has no package.

This is where the parse stops:





PS: toMBFormat is a static method that returns a String and takes another string as a parameter.

Postnext
Minollo I.Subject: RE: XSL does not preserve string function
Author: Minollo I.
Date: 24 Sep 2001 09:33 AM
Looks like there are a couple of problems here:

1 - Stylus Studio is currently limited to handle Java methods which
return 'Object' results; so, in your case toMBFormat should be 'Object
toMBFormat(String)', rather than 'String toMBFormat(String)'.
2 - It looks like we are having some regression with static methods;
I've been able to reproduce the error you get declaring the function as
static; the error goes away if the function is not static; we'll look into
this problem, and hopefully quickly make a fix available for this and the
other auto-completion crash issue you have reported.

Thanks for your help,
Minollo

Posttop
Minollo I.Subject: RE: XSL does not preserve string function
Author: Minollo I.
Date: 24 Sep 2001 05:26 PM

> 2 - It looks like we are having some regression with static methods;
>I've been able to reproduce the error you get declaring the function as
>static; the error goes away if the function is not static; we'll look into
>this problem, and hopefully quickly make a fix available for this and the
>other auto-completion crash issue you have reported.

This problem is fixed in BL61e now available on:
http://download.exceloncorp.com/downloads/studio/iftw_beta/stylus%20studio.htm

Thanks,
Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.