View Single Post
  #1 (permalink)  
Old August 9th, 2005, 09:26 AM
kwilliams kwilliams is offline
Points: 1,561, Level: 16
Points: 1,561, Level: 16 Points: 1,561, Level: 16 Points: 1,561, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2005
Location: , , .
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSL & SSI - Is it possible?

Can you use Server-Side Includes within an XSLT stylesheet? I'm asking because I liked using them in my previous site's design for non-duplication and uniformity for my site. I'd like to use them for universal properties for my new site, which will include meta tags, CSS stylesheets, page headers for screen, print, etc., and other stuff.

I've put this into an XSLT stylesheet to see what happened, like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
                <title>Forms #38; Documents</title>

...and received no errors. But the data didn't show up when it was transformed to XHTML using the transformNode method in an ASP.NET page.

I was able to use them fine within the actual ASP.NET page, but that means that they can't be applied to the <head> tag of the document, which is where I need to place some of the properties. If anyone could let me know of a way to accomplish this, or an alternative to SSI's within XSLT, that would be great. Thanks for any help.

Reply With Quote