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

Re: Role of XSLT?

Subject: Re: Role of XSLT?
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Wed, 30 Oct 2002 19:05:54 +0000
trevor nash
On Mon, 28 Oct 2002 22:08:55 -0700, Brian Grainger wrote:

>Anyway, to get back to the subject of this thread, if you apply the concept 
>of a separation between content and presentation, then I would say that 
>business rules apply to content and XSLT applies to the presentation of 
>that content.
>
>Following this line, you should be using something other than XSLT to 
>modify your data (ie. 5% discount), and then using XSLT to present that 
>modified data.

I disagree with that: XSLT is both capable and suitable for
calculating a simple discount.

The people who designed XSLT intended it to be used for either
purpose.  That is why the top level element can be either
xsl:stylesheet (for presentation) or xsl:transform (for logic).
(Using one or the other has no practical significance, it is just a
statement of intent).

As others have already said, it is of course good practice to keep the
two separate.  The original problem arises from poor use of language
rather than poor choice of language.

Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 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.