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
Daniel LucioSubject: java extensions
Author: Daniel Lucio
Date: 11 Mar 2002 05:42 PM
Hi!

I am developing java extensions and I found out that with stylus studio's internal processor, you can not declare a namespace for java like:

xmlns:java="http://xml.apache.org/xslt/java"

And make a call to java object like:

java:myproject.MyClass.myMethod(mydata)

Stylus studio thows a message that says:

"Exception calling Java extension:
java.lang.ClassNotFoundException:http://xml.apache.org/xslt/java
at CXClassLoader........
.
."

Regards

Pd, I tried my script with Xalan on the command line and it worked.

Postnext
Minollo I.Subject: Re: java extensions
Author: Minollo I.
Date: 11 Mar 2002 05:49 PM
No, that won't work; but if you define:

xmlns:java="myproject.MyClass"

and you use

java:myMethod(mydata)

then both Xalan-J and Stylus Studio should understand it.

Things will get simpler when XSLT 2.0 will be out and all processors will
unify to the specs about extension functions.
And you will probably find Stylus Studio 4.0 useful, as it supports Xalan-J
step-by-step debugging.

Minollo

Postnext
Ivan PedruzziSubject: RE: java extensions
Author: Ivan Pedruzzi
Date: 11 Mar 2002 05:53 PM

Hi Daniel,

The internal processor support the following syntax:

Declaration:
xmlns:MyExt="myproject.MyClass"

Invocation:
xsl:value-of select="MyExt:myMethod()"

The same syntax should be support across different processors : Xalan,
xt, Saxon


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



> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager]
> Sent: Monday, March 11, 2002 5:53 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: java extensions
>
>
> From: "Daniel Lucio"
>
> Hi!
>
> I am developing java extensions and I found out that with
> stylus studio's internal processor, you can not declare a
> namespace for java like:
>
> xmlns:java="http://xml.apache.org/xslt/java"
>
> And make a call to java object like:
>
> java:myproject.MyClass.myMethod(mydata)
>
> Stylus studio thows a message that says:
>
> "Exception calling Java extension:
> java.lang.ClassNotFoundException:http://xml.apache.org/xslt/java
> at CXClassLoader........
> .
> ."
>
> Regards
>
> Pd, I tried my script with Xalan on the command line and it worked.
>
>
>
> To reply: mailto:stylus-studio-tech.4827@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-tech@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
Daniel LucioSubject: RE: java extensions
Author: Daniel Lucio
Date: 11 Mar 2002 06:09 PM
Hi!

Well, yes you are right for that. But it happens that we make several calls to different classes, and we do not want to declare a namespace-prefix, for each one of them, as many of them are called once in the script. That is why we are interested in having a general namespace for java like the one I posted in the first message.

Regards!

On 3/11/02 5:53:33 PM, Ivan Pedruzzi wrote:
>
Hi Daniel,

The internal
>processor support the
>following
>syntax:

Declaration:
xmlns:My
>Ext="myproject.MyClass"

Invoc
>ation:
xsl:value-of
>select="MyExt:myMethod()"

The
>same syntax should be support
>across different processors :
>Xalan,
xt,  Saxon


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



> -----Original
>Message-----
> From:
>stylus-studio-tech Listmanager
>[mailto:listmanager] 
> Sent:
>Monday, March 11, 2002 5:53
>PM
> To: Recipients of
>'stylus-studio-tech'
>suppressed
> Subject: java
>extensions
> 
> 
> From:
>"Daniel Lucio" 
> 
> Hi!
> 
>
>I am developing java
>extensions and I found out
>that with 
> stylus studio's
>internal processor, you can
>not declare a 
> namespace for
>java like:
> 
>
>xmlns:java="http://xml.apache.
>org/xslt/java"
> 
> And make a
>call to java object like:
> 
>
>java:myproject.MyClass.myMetho
>d(mydata)
> 
> Stylus studio
>thows a message that says:
>
>
> "Exception calling Java
>extension: 
>
>java.lang.ClassNotFoundExcepti
>on:http://xml.apache.org/xslt/
>java
> at
>CXClassLoader........
> .
>
>."
> 
> Regards
> 
> Pd, I
>tried my script with Xalan on
>the command line and it
>worked.
> 
> 
> 
> To reply:
>mailto:stylus-studio-tech.4827
>@edn.exceloncorp.com
> To
>start a new topic:
>mailto:stylus-studio-tech@edn.
>exceloncorp.com
> To login:
>http://edn.exceloncorp.com/~SS
>DN
> 
> 




Postnext
Daniel LucioSubject: RE: java extensions
Author: Daniel Lucio
Date: 12 Mar 2002 06:12 PM
Hi!

Do you plan to support a namespace for java like xmlns:java="http://xml.apache.org/xslt/java"

so that we can make different calls to java object like:

java:myproject.MyClass1.myMethod1(mydata1)
java:otherproject.MyClass2.myMethod2(mydata2)

??

Regards!

Posttop
Minollo I.Subject: RE: java extensions
Author: Minollo I.
Date: 12 Mar 2002 06:18 PM
At this point we don't have plans to support that in the Stylus Studio
processor.

But, as mentioned in my previous post, 4.0 will support debugging and
back-mapping through the Xalan-J processor; so, whatever XSLT+Java runs on
Xalan-J, you will be able to debug in Stylus Studio!

4.0 will be in beta in a few days.

Hope this helps,
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.