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

Re: java methods vs XSL templates

Subject: Re: java methods vs XSL templates
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 10 May 2002 11:49:40 -0400
xsl calling java method performance
Laura,

At 11:17 AM 5/10/2002, you wrote:
I have requirement for functionalities like date format conversion
ie from YYYYMMDD to DD:MM:YY..
now i can write a java method that does this or i can write a xsl template that will do this.I can then store it in an utility XSL file and keep calling that template through xsl:call-templates , and pass the date as parameter and store the return value in a variable.


i however think that writing a java method is a more elegant way of doing this ,as java code is precomplied and would take less processing time.

The generic consultant's answer: "it depends".


The Java extension function is faster, makes for cleaner XSLT code, and is (arguably) more elegant.

The XSLT solution is more portable.

Accordingly, consider where and how this will be running, whether performance requirements have an impact, how and by whom it will be maintained, etc.

It's like the choice between a Jaguar and a 4WD Jeep. It depends on how the roads are where you're going and what the style is to which you would like to become accustomed.

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.