This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Practicality of Separating Data from Presentation
- From: "Robert S. Koberg" <rob at koberg dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 02 Jul 2002 13:13:56 -0700
- Subject: Re: [xsl] Practicality of Separating Data from Presentation
- References: <20020701213120.25797.qmail@email.com> <3D20CF21.5020409@koberg.com> <3D22052F.60902@yahoo.de>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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