Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 9th, 2005, 09:26 AM
Banned
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:
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
Reply With Quote
  #2 (permalink)  
Old August 9th, 2005, 09:48 AM
Banned
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

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:13 PM.


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