473,382 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

XHTML & SSI

Hi! I'm not an expert in XSL and XHTML so I need a little help!

I have an XSL file that ends up using the ENTITY (varname) SYSTEM
(file.xhtml) and then calls this variable which in turn outputs the
content in this .xhtml.

The problem is that in the XHTML file I want to do include. I tried
doing a Server Side Include (SSI), but XHTML seems to ignore it. So
how can I do an include on a file from inside an XHTML file?

If you can put a little code snippet for me, that would be great.
Thanks!
Jul 20 '05 #1
2 3609
Bond13579 wrote:
The problem is that in the XHTML file I want to do include. I tried
doing a Server Side Include (SSI), but XHTML seems to ignore it. So
how can I do an include on a file from inside an XHTML file?


The same way as absolutely any other file.

You just have to have your server configured to recognise that said file is
one that should be parsed for SSI statements.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #2
On 16 Jul 2004 05:47:20 -0700, ni*************@hotmail.com (Bond13579)
wrote:
Hi! I'm not an expert in XSL and XHTML so I need a little help!

I have an XSL file that ends up using the ENTITY (varname) SYSTEM
(file.xhtml) and then calls this variable which in turn outputs the
content in this .xhtml.

The problem is that in the XHTML file I want to do include. I tried
doing a Server Side Include (SSI), but XHTML seems to ignore it. So
how can I do an include on a file from inside an XHTML file?


I'm not entirely sure I've followed you correctly, so let me first
describe what I think you're trying to do.

You have an XSLT document to map some XML document to XHTML. As part
of your output, you include XHTML content from a separate document
using an XML entity reference. Your resulting XHTML document includes
some server-side includes directives which you'd like the server to
act on.

I assume, then, that whatever is doing your XSLT transformation is
running on your server and serving the resulting XHTML to the client.
You need a way to sneak in the SSI processor between the XSLT
processor and the content being sent off to the client.

How you do this is a server-side issue and thus depends on what server
software you are running. You will probably get a more in-depth answer
if you post your question in one of the newsgroups under:
comp.infosystems.www.servers.*

Just pick the one of the OS on which your web server is running.

As an alternative, you might like to try using an XML entity reference
from your HTML document, too. Your XSLT processor, assuming it "does"
XML properly, should handle that just as well as it did in the XSLT
document. If you want more help with *that* you'll have to find an XML
group, but I don't know any off the top of my head.

Take care,
-Claire
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick | last post by:
Hi.. I've got some code I wrote in PHP that will generate a new argument string for the browser, but the xhtml parser in Firefox and Opera both complain about my use of &var=value pairs. Below...
13
by: Tjerk Wolterink | last post by:
Hello i've an xsl stylesheet that must support xhtml entities, my solution: ---- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet > <xsl:stylesheet version="1.0"...
2
by: piraticman | last post by:
Hi. I have some code for a javascript jump menu... It validated with HTML 4.0 but now does not validate with XHTML strict 1.0. I have used name atributes in my code which aparantly are not...
12
by: Burton Figg | last post by:
My homepage, www.jimpix.co.uk uses transitional XHTML. The whole thing validates except one line: <noscript><img height="1" width="1" alt=""...
2
by: Brian Idzik | last post by:
I've successfully setup a xhtml 1.0 strict page with Mozilla & Netscape to display links in a toolbar into an internal <div id='content'> within the same document. The toolbar uses some...
2
by: Rick | last post by:
Hi.. I've got some code I wrote in PHP that will generate an HTML page with embedded javascript which in turn creates a new argument string for the browser, but the xhtml parser in Firefox and...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
21
by: peteski22 | last post by:
How can I get my webpage to validate to XHTML strict if I am using the commands as given in the phpthumb demo: <img src="../phpThumb.php?src=images/disk.jpg&w=200"> This gives validation...
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.