By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

SSI and XHTML

P: n/a
Hello,
I am using SSI files for a site. Included in the SSI file is text
content that includes characters such as the ampersand(&) and
copyright symbol. In my markup, I've converted these characters to
"&" and "©" (excluding the quotes, of course) yet when the
files display in a page, and when I do a View Source", these
characters are shown as "&" and the copyright symbol. I've tried
coding these characters with the number codes and the same thing
happens. However, if the same characters are used in code not
included in the SSI they remain as originally coded.

Normally I wouldn't be concerned, but I'm trying to write the pages to
conform to a transitional XHTML standard .. of course, the pages don't
validate because of the incorrect characters.

Any suggestions/comments?

Many thanks,
R.A. Paterson
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Bob Paterson wrote:
Any suggestions/comments?


Just one: give us a URI ;-) (ok, two: give us example code)
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #2

P: n/a
Anne van Kesteren <ma**@annevankesteren.nl> wrote in message news:<br**********@reader08.wxs.nl>...
Bob Paterson wrote:
Any suggestions/comments?


Just one: give us a URI ;-) (ok, two: give us example code)


OK, so I'm a trifle thick at times ... here is an axcerpt from the
page as it's coded with the SSI files:

<table id="content" summary="Sidebar and Main content" width="759"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="sidebar" valign="top" width="159" rowspan="2">
<!--#include virtual="/production/ssi/sidebar_ucc.ssi" -->
<!--#include virtual="/production/ssi/features_ucc.ssi" -->
</td>
<td id="pagetitle" width="600">

An excerpt from the SSI file with the code as intended is as follows:

<li><a href="#" onclick="toggle('ms'); return false;" title="Click to
open/close the Mission and Service Fund directory.">M&S Fund</a>
<ul id="ms" style="display:none">
<li><a href="/msfund/home.shtm">M&amp;S Home Page</a></li>
<li><a href="/msfund/givings.shtm">Current Donations</a></li>
<li><a href="/directgiving/home.shtm">Direct Giving</a></li>
<li><a href="/giftplanning/home.shtm">Gift Planning</a></li>
<li><a href="/enthusiasts/home.shtm">M&amp;S Enthusiasts</a></li>
<li><a href="/minutes/home.shtm">Minutes for Mission</a></li>
</ul>
</li>

The page itself may be found at
http://204.50.157.90/ucc/history/home.shtm ... if you do a view
source, you should find the code in question ... with the ampersands
changed ...

Hope this helps,
Thanks
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.