p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   XSL & SSI - Is it possible? (http://p2p.wrox.com/showthread.php?t=32307)

kwilliams August 9th, 2005 09:26 AM

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="http://www.w3.org/1999/XSL/Transform">
<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.


kwilliams August 9th, 2005 09:48 AM

Ok, I solved my problem in a roundabout way. I just removed all of the HTML tags from the XSLT stylesheet, and placed them into the ASP.NET page. Since my site is going to be completely dynamic from this one central page, I will be able to apply links, SSI's, and whatever else to every page transformed from XML & XSLT. So it works out great. But thanks anyway:)


All times are GMT -4. The time now is 09:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.