Re: [xsl] Practicality of Separating Data from Presentation

Subject: Re: [xsl] Practicality of Separating Data from Presentation
From: "Robert S. Koberg" <rob@xxxxxxxxxx>
Date: Tue, 02 Jul 2002 13:13:56 -0700
Hi Joerg,

J.Pietschmann wrote:
Robert S. Koberg wrote:

Is there a way to write well-formed ASP?

Yes: use text output mode.

how does this make it well-formed?




You can with JSP.

It depends. In general JSP isn't XML either (you *can* write <p class=<%=style%>>) Same with PHP.


Ah, but you can:

<xsl:template match="/">

    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="1.2">
        <jsp:scriptlet>
        request.getParameter("test");
        </jsp:scriptlet>
    </jsp:root>

</xsl:template>

JSP can be written in two ways, the old way or well-formed.


The question being is: why would anyone write a proccessing pipeline in which ASP (or JSP, PHP) processing *follows* XSLT processing? Just do it the other way around: use ASP (or JSP, PHP) to produce well formed XML, and pipe this through the XSLT processor.


To generate a large percentage of your site statically. What you can't generate statically, generate to JSP and let the JSP take over during run-time.

best,
-Rob



J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list








XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread