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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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
\

   
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.