This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Business logic (was: Re: Efficiency Issues)
- From: jasonp <jason dot pluis at wizardis dot com dot au>
- To: XSL List <XSL-List at lists dot mulberrytech dot com>
- Date: Fri, 12 Apr 2002 09:27:32 +1000
- Subject: RE: Business logic (was: Re: [xsl] Efficiency Issues)
- Organization: Wizard Information Services
- Reply-to: xsl-list at lists dot mulberrytech dot com
My experience has been that business logic is contained within a DTD or
schema.
We construct a DTD/schema with clients that contains structures that are
specifically identified to contain their business logic and rules, then
use XSL to present those structures in a particular format, usually
html.
Date: Thu, 11 Apr 2002 09:27:55 +0100
From: "Michael Kay" <michael.h.kay@ntlworld.com>
Subject: RE: Business logic (was: Re: [xsl] Efficiency Issues)
> Nobody has a precise but universal definition of the term
> "business logic". One man's busines is someone else's
> presentation.
You are right.
> Business logic is transactions, dealing with database access,
> doing complicated calculations, drawing charts, perform spell
> checking.
You are wrong. Drawing charts is (my) presentation. "Dealing with
database
access" is not business logic either. Spell-checking is a grey area, or
perhaps a gray one, depending on the business and/or presentation rules.
> If it's easy to do in XSLT, it is often presentation.
> If it seems to be hard or impossible in XSLT, in particular if
> you feel the need to store calculated trees in variables and
> run templates on them again, or if you have lots of xsl:if
> and xsl:choose, or lots of recursive templates, it is probably
> business logic.
>
I'm not convinced. I've seen XSLT used to do tax and interest rate
calculations. That's definitely (my) business logic.
Actually, I think the vast majority of applications contain no business
logic, they are purely concerned with presentation and data storage.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
_.-~-._.-~-._.-~-._.-~-._.-~-._.-~-.
Jason Pluis
Senior Analyst/Programmer
Wizard Information Services
Ph: +612 6275 0914
Mob: 0418 619 881
Email: jason.pluis@wizardis.com.au
WWW: http://www.wizardis.com.au
_.-~-._.-~-._.-~-._.-~-._.-~-._.-~-.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list