× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



XSL is interesting, but how did they come up with the term "style sheets"
for XSL?  Traditionally, style sheets simply associate color, font, and
similar attributes to HTML elements.  In this context, isn't "style sheet"
really a misnomer for XSL?

Isn't XSL really a programming language with looping constructs, conditional
logic, and so forth?  Well, such is the case with object oriented
vocabulary, which sadly tends to get more convoluted over time.

I think XSL was conceived as a way to move program logic to the workstation
where HTML generation could be performed by a dedicated processor, enhancing
overall throughput.  It's interesting to see the transformations moved back
to the server.

Consider that servlets or JSPs typically transform SQL result sets to XML,
then another program (XSL) is evoked to transform the XML into HTML.

I can envision the Transformer Factory parsing and interpreting the program
source code (XSL) as well as parsing the formatted data (XML) to finally
generate the HTML.  Why not bypass the SQL to XML transformation step
altogether?

Consider the overhead of loading an additional program interpreter
(Transformer Factory) as well as the relatively poor performance of
interpretive runtime environments generally.  It must be things like this
that give Java its reputation for poor performance.

I recently stress tested a simple servlet that generated HTML from an SQL
result set, and compared it to the performance of a RPG program that
generated the same HTML from the same data file.  The RPG program provided
1000% to 1300% better performance.  If another step were added to the
servlet to generate XML from the SQL result set, then generate HTML from the
XML, I can only imagine the additional performance hit.

Just a consideration.

Nathan M. Andelin
www.relational-data.com


----- Original Message -----
From: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>
To: "'Web Enabling the AS400 / iSeries'" <web400@xxxxxxxxxxxx>
Sent: Friday, August 29, 2003 9:15 AM
Subject: RE: [WEB400] XML/XSL


> I would not rely on the browser to do the transformation unless you can
> control the version of browser used.  Yes you can do the transformation on
> the iSeries in languages that support it such as Java.  Here is an
example:
>
>
> TransformerFactory tFactory = TransformerFactory.newInstance();
>
> Source xmlSource = new SAXSource(new InputSource(new
> StringReader(readIFSFile(in))));
>
> Source xslSource = new StreamSource(new
> java.net.URL("http://mycompany.com/Email.xsl";).openStream());
>
> Transformer transformer = tFactory.newTransformer(new StreamSource(new
>
java.net.URL("http://icsm400.taylorcorp.com/EmailError.xsl";).openStream()));
>
> transformer.transform(xmlSource, new StreamResult(System.out));
>
>
> If you apply the style sheet programmatically then you can use style
sheets
> that reside anywhere.  If you apply stylesheets by imbedding it in the XML
> document then the style sheet must reside on the same machine that the
> request was done.
>
> Hope that helps,
> Aaron Bartell



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.