This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re:Re: regarding the extension library
- From: "william locksman" <vsd18 at rediffmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: 15 May 2002 10:16:01 -0000
- Subject: Re:Re: [xsl] regarding the extension library
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Greg.. Following is the java Code
public class StringUtils {
/**
* Constructor for the StringUtils object
*/
public StringUtils() { }
/**
* Description of the Method
*
*@param str Description of the Parameter
*@return Description of the Return Value
*/
public String upperCase(String str) {
return str.toUpperCase();
}
}
I am not using any static method and neither does this class have
a main()..
I am a bit worried that when i dint instantiate the class how is
it working???
will XSL do that part by reading the name space declaration or
something???
like .. will the parser read the declaration
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan = "http://xml.apache.org/xalan"
exclude-result-prefixes="xalan"
xmlns:str-utils = "com.xyz.StrUtils" extension-element-prefixes
="str-utils string" >
and instantiate the class com.xyz.StrUtils????
thanks
>> From: Greg Faron <gfaron@integretechpub.com>
>>Reply-To: xsl-list@lists.mulberrytech.com
>>To: xsl-list@lists.mulberrytech.com
>>Subject: Re: [xsl] regarding the extension library
>>Date: Tue, 14 May 2002 11:12:10 -0600
>>
>>At 05:13 AM 5/14/2002, you wrote:
>>>I have then formed my own utility class that returns the string
>>>in the
>>>uppercase( just for test purpose ). This Class is StrUtils
>>>which has a
>>>method called upperCase()that takes the String to be converted
>>>to the
>>>uppercase and returns String in uppercase.
>>>
>>>This works fine too. My question is that in my Example, where
>>>is the
>>>instantiation being done?? I have not done anything like
>>>com.xyz.StrUtils.new()... so how is it working??
>>>what is the theory behind the object instantiation when it
>>>comes to
>>>extension libraries??
>>
>> You didn't show us the Java method source. Is it by any
>>chance a
>>"static" method?
>>
>>
>>Greg Faron
>>Integre Technical Publishing Co.
>>
>>
>>
>>XSL-List info and archive:
>>http://www.mulberrytech.com/xsl/xsl-list
>>
>
>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or
Abroad
http://monsterindia.rediff.com/jobs
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list