Subject: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?
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.
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?
Subject: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.
Subject: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?
Subject: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.
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?
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.
Subject: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"
}
}