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
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 03 Sep 2007 04:08 AM
Hello,

I am new to Stylus Studio and XSLT. Please help me!

For the function create new xslt file. I know that Stylus Studio support graphical interface for standard XSLT function such as concatination, ceiling and so on.

However, I am now requested to create XSLT file which is able to use a few additional functitons such as Truncate, Lookup, convert-date, conversion, get word, and so on. May I please ask whether the Stylus Studio support additional function graphically? For example, for the truncate function:
<ReferenceAddress>
<xsl:value-of select="truncator:performTruncate($javatruncator, Field4Name/text(), 30)"/>
</ReferenceAddress>

As well, for the xslt which contain Disabling Output Escaping condition; how should I deal with?

If there is no graphical interface for those yet, will you consit=der this for the next release? Or will there be way for me to add additional functions to the existing product?

Thanks,
Nid

Postnext
(Deleted User) Subject: Additional rule/functions
Author: (Deleted User)
Date: 04 Sep 2007 06:06 AM
Hi Nid,
if your 'truncate' function is a Java function, you should first register it by invoking the Java Functions -> Register Java Extension Class popup menu.

Hope this helps,
Alberto

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 14 Sep 2007 03:30 AM
Thank you, Alberto! I will try this out!!

Nid

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 16 Sep 2007 10:44 PM
Hello Alberto,

Thanks again for the response. There is one more thing though, the trial version in my computer is expired and I am doing research for the right product; if the product can do what we need than we will buy it. Now I have not have a chance of trying out this function yet but it is already expired. Just want to know if there is a way I can try out this functional first?

Thanks,
Nid

Postnext
Tony LavinioSubject: Additional rule/functions
Author: Tony Lavinio
Date: 17 Sep 2007 09:16 AM
Send an email to stylusstudio (at) stylusstudio.com asking for a week's
extension, and reference this message. They'll be able to help you out.
Include your registration key in the email.

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 19 Sep 2007 08:13 PM
Hello Alberto,

I cannot find the "Java Functions -> Register Java Extension" you were mentioning at all.

Could you please let me know the exact instruction?

Thanks,
Nid

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 20 Sep 2007 12:58 AM
Hello Alberto,

Sorry, now I can "Java Functions -> Register Java Extension" you were mentioning. However, can I ask what file required there in order to do the registration? I put the .java file but it wasn't recognised.

Could you please let me know the exact instruction?

Thanks,
Nid

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 20 Sep 2007 03:57 AM
Hi,

I have done exactly what you told. I have registered the java file and the class file. However, after registering, I still cannot use the functions. The registered functions are not appeared to be available to use.

Have I missed out anywhere? Please help!

Thanks,
Nid

Postnext
(Deleted User) Subject: Additional rule/functions
Author: (Deleted User)
Date: 20 Sep 2007 06:48 AM
Hi Nid,
could you attach a screen shot to explain your comment "the registered functions are not appeared to be available to use"?

Thanks,
Alberto

Postnext
Nid LimSubject: Additional rule/functions
Author: Nid Lim
Date: 20 Sep 2007 06:58 PM
Hello Alberto,

Thanks for replying me this. Please see the attachment and you will understand what I meant.

Have I done something wrong? Please let me know!

Thanks,
Nid


DocumentPrintScreens.doc

Postnext
(Deleted User) Subject: Re: Additional rule/functions
Author: (Deleted User)
Date: 21 Sep 2007 02:07 AM
Hi Nid,
can you check what is the content of the JavaExtensionClasses key
under the registry key HKEY_CURRENT_USER\Software\Stylus Studio\2007
XML Enterprise Suite Release 2\Mapper after you register your class?

Thanks,
Alberto

Postnext
Nid LimSubject: Re: Additional rule/functions
Author: Nid Lim
Date: 21 Sep 2007 02:39 AM
Hello Alberto,

I could not find the find you mentioned at all. Could you please let me know step by step?

Thanks,
Nid

Postnext
(Deleted User) Subject: Re: Additional rule/functions
Author: (Deleted User)
Date: 21 Sep 2007 03:32 AM
Click on the Start button, choose Run, type in "regedit", expand the
tree on the left following the path "HKEY_CURRENT_USER", "Software",
"Stylus Studio", "2007 XML Enterprise Suite Release 2" and select
"Mapper"; in the right pane you should see a "(Default)" entry and a
"JavaExtensionClasses" followed by a string. That string should be
the list of the Java classes (separated by semi-colons) that you
registered through the Mapper UI.

Alberto

Postnext
Nid LimSubject: Re: Additional rule/functions
Author: Nid Lim
Date: 23 Sep 2007 08:39 PM
Hello Alberto,

Thank you for give me instruction step by step. Yes, I can see the string but it does not contains the Jave Class that I have registered at all.

What should I do now, I have tried to register it a few times already and I have tried a few more times today as well.

Thanks,
Nid

Postnext
Nid LimSubject: Re: Additional rule/functions
Author: Nid Lim
Date: 23 Sep 2007 09:25 PM
Sorry Alberto,

I just found the Java Class I registered in the string but it does not appeared available to be used.

Could you please let me know what I should do after this?

Thanks,
Nid

Postnext
(Deleted User) Subject: Re: Additional rule/functions
Author: (Deleted User)
Date: 24 Sep 2007 04:40 AM
Hi Nid,
in this case it means that the class could not be loaded; can you verify that any dependent JAR is also in the project classpath?

Alberto

Posttop
Oscar CoronadoSubject: Re: Additional rule/functions
Author: Oscar Coronado
Date: 01 Nov 2012 03:05 PM
So does the little red X that appears when you are trying to register you class mean it can't resolve a jar? I am doing a proof of concept and can't get this to work because it has the little X on my class. My class couldn't be any simpler.
public class DateConverter {
public object MakeString() {
return "Hello World"
}
}

 
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.