This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Practicality of Separating Data from Presentation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]