This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: JSP includes in XSLT
- From: Guy McArthur <guym at guymcarthur dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 12 Jul 2002 11:20:25 -0700 (MST)
- Subject: RE: [xsl] JSP includes in XSLT
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Unfortunately, <jsp:include> is interpreted
> differently than <% include %> (or at least
> that was what I was told by JSP folks). The
> <% %> version is a compile-time include but
> <jsp:include> is run-time, so there are
> performance issues with using the xml syntax.
>
> Sara
>
Er, yes and no:
<jsp:directive.include file="relativeURL"/>
is the xml equivilant of
<%@ include file="relativeURL" %>
but it is not the same as
<jsp:include page="relativeURL"/>.
Otherwise, you are correct, one is compile-time, the other dynamic.
P.S.
One of the advantages of the xml syntax is you can validate the jsp
against the document type definition in your editor (netbeans, for
instance).
The syntax card for jsp 1.2 lists the xml syntax for each element
(available on http://java.sun.com/products/jsp/technical.html).
Guy
Apologies for off-topic.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list