Does anybody know if it's possible to include an html file inside of an XSLT style sheet in the same way server side includes are done? I'm trying to create a common header for my website, but I'd also like to make use of XML/XSLT (with cocoon and apache). But, I don't want cocoon to have to parse though it, since some of the tags will be left opened, and will be closed in the common footer I'd also like to include. I'm not sure if this is possible or not. Any help would be appreciated. Thanks.
Hi, I'm not sure this is what you want but...
There's a XSL function to combine stylesheets, try to use it:
<xsl:include href="what ever you want"/> or <xsl:import href="what ever you want"/>
Hope this helps.
yea, tried that, it tries to insert the "XSL" stuff into my other XSL file, then it preceeds to parse it. What I really want to do is be able to display straight html out of a CDATA element, but I'm not sure how to go about that.
You could try placing this line in your DTD
<!ENTITY header SYSTEM "URL to html file">
And then placing the entity in your XSLT file.
I've had it work for me before, but never with php.
Hope this works for you.