A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Server side includes with XSLT
Joined: Jul 15, 2004
Jul 15, 2004 15:35:00
I want to know if its possible to use server side includes (SSI) with xslt.
Usually in html the way we do it is by using the following syntax:
<!-- ssi code here -->
But the start & end tags are treated as comments in xslt. Is there a way out? I appreciate any response.
Joined: Apr 26, 2004
Jul 15, 2004 15:39:00
You can generate comments using XSLT using the xsl:comment instruction. Or, if the SSI comments are in your XML source, you can match them using comment() and pass unchanged to the output, for example:
Joined: Mar 06, 2001
Jul 15, 2004 16:27:00
How do you specify href in <xsl:include href="" />?
let's say I have two xsl files
and we want to include second.xsl in main.xsl
In main.xsl I do:
<xsl:include href="second.xsl" />
<xsl:include href="com/test/second.xsl" />
IN neither way the transformer see it.
I am using
I agree. Here's the link:
subject: Server side includes with XSLT
jhtml and shtml
include HTML in a page
Including xhtml (html) into another xhtml file
Limitation on File
include contents of an .inc file as in HTML pages
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015