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

RE: XSLT vs JSP

Subject: RE: XSLT vs JSP
From: "Don Park" <donpark@xxxxxxxxx>
Date: Sat, 26 Jun 1999 22:49:15 -0700
jsp xml vs xslt xml
> I don't think it's silly at all and nothing like the
> analogies you give. My
> concern was that JSPs go 95% of the way towards being XML
> (with the benefits
> that brings) and then ruin any chance of that by using their
> own non-XML
> syntax extension.
> But if JSP has an XML encoding (of which I was not aware)
> then it makes me
> feel much better about it.

While I don't think it is silly, XML developers should take care not to fall
into 'everything should be XML' pitfall.  There are many reasons why JSP is
so similar to XML yet fails to be XML completely.

First reason is parsing speed.  It is easier and faster to search for <% and
%> than to parse all the tags as in XML.

Second reason is output format.  JSP is primarily designed to output HTML
which is different enough from XML to be problematic.  Forcing JSP to be XML
also causes static parts of JSP to be XHTML.

Third reason is ease of writing.  JSP can be created by simply copying some
HTML fragments over and then adding some Java or JavaScript code.  If JSP
was XML then reserved characters (i.e. <, >, &) will have to be escaped and
end tags have to be added (i.e. <p>).

It is true that JSP can be XML but I don't think it should be XML.  Matter
fact, XML [expletive deleted] in many ways.  For example, my son prefers Pokeymon over
XML.  Maybe if I change his middle name to XML, he might change his opinion.
<g>

Best,

Don Park
Docuverse


 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.