[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re:Re: regarding the extension library

Subject: Re:Re: regarding the extension library
From: "william locksman" <vsd18@xxxxxxxxxxxxxx>
Date: 15 May 2002 10:16:01 -0000
strutils download
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@xxxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.