Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2005, 09:26 AM
Banned
 
Join Date: Jul 2005
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:
Code:
<?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="/">
        <html>
            <head>
                <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
 
Old August 9th, 2005, 09:48 AM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:)

KWilliams





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL & JavaScript Ryan Moore XSLT 1 October 9th, 2007 01:36 PM
MSXML4.0: 1) Getting Started & 2) First XSL & HTML BigOcean XSLT 1 February 25th, 2005 05:44 PM
XSL:CHOOSE & XPATH falmouth XSLT 3 November 17th, 2004 08:36 AM
Tomcat 5 with SSI ... HELP! HELP! HELP! soxar HTML Code Clinic 1 June 13th, 2004 12:52 AM
Tricky Javascript/XSL '&' problem...... robster Javascript How-To 1 January 23rd, 2004 02:11 PM





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