Convert a string in the id attribute to the upper case to avoid

confusion.

Rationale: The ISO 8879 (SGML) specification defines this as
case-insensitive and it must always be treated as one in the upper case
when the SGML declaration does not include "NAMECASE GENERAL NO."
On the other hand, in the XML specification (REC-xml-20040204)
it is case-sensitive and no normalization with regard to the case
must not be performed by an XML parser.  We use HTML 4.01 (SGML) DTD
in most of the files in the www tree and convert them into XHTML
1.0 (XML) DTD forcibly by using tidy.  So, as long as we use both
SGML and XML DTD in this way it is better to use upper case only
for the id attribute to avoid the case sensitivity problem.
This commit is contained in:
Hiroki Sato 2005-11-06 17:21:28 +00:00
parent 8040e9198a
commit 00616f3728
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=26262
10 changed files with 136 additions and 136 deletions

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: www/share/sgml/includes.header.sgml,v 1.6 2005/10/04 06:13:33 murray Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.header.sgml,v 1.7 2005/10/06 19:27:37 ceri Exp $ -->
<!-- Images -->
<!ENTITY i.daemon '<img src="&base;/gifs/daemon.gif" alt="" align="left" width="80" height="76">'>
@ -30,21 +30,21 @@
<script type="text/javascript" src="&base;/layout/js/styleswitcher.js"></script>
</head>
<body>
<div id="containerwrap">
<div id="container">
<span class="txtoffscreen"><a href="#content" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
<span class="txtoffscreen"><a href="#contentwrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
<div id="headercontainer">
<div id="CONTAINERWRAP">
<div id="CONTAINER">
<span class="txtoffscreen"><a href="#CONTENT" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
<span class="txtoffscreen"><a href="#CONTENTWRAP" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
<div id="HEADERCONTAINER">
<div id="header">
<div id="HEADER">
<h2 class="blockhide">Header And Logo</h2>
<div id="headerlogoleft">
<div id="HEADERLOGOLEFT">
<a href="&base;" title="FreeBSD"><img src="&base;/layout/images/logo.png" width="360" height="40" alt="FreeBSD"></a>
</div> <!-- headerlogoleft -->
<div id="headerlogoright">
</div> <!-- HEADERLOGOLEFT -->
<div id="HEADERLOGORIGHT">
<h2 class="blockhide">Peripheral Links</h2>
<div id="searchnav">
<ul id="searchnavlist">
<div id="SEARCHNAV">
<ul id="SEARCHNAVLIST">
<li>
Text Size: <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet(&#39;Normal Text&#39;); return false;" title="Normal Text Size">Normal</a> / <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet(&#39;Large Text&#39;); return false;" title="Large Text Size">Large</a>
</li>
@ -55,22 +55,22 @@
<a href="&base;/mailto.html" title="Contact">Contact</a>
</li>
</ul>
</div> <!-- searchnav -->
<div id="search">
</div> <!-- SEARCHNAV -->
<div id="SEARCH">
<form action="&cgibase;/search.cgi" method="get">
<div>
<h2 class="blockhide"><label for="words">Search</label></h2>
<input type="hidden" name="max" value="25"> <input type="hidden" name="source" value="www"><input id="words" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value=&#39;&#39;;" value="Search"> <input id="submit" name="submit" type="submit" value="Search">
<input type="hidden" name="max" value="25"> <input type="hidden" name="source" value="www"><input id="WORDS" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value=&#39;&#39;;" value="Search"> <input id="SUBMIT" name="submit" type="submit" value="Search">
</div>
</form>
</div> <!-- search -->
</div> <!-- headerlogoright -->
</div> <!-- SEARCH -->
</div> <!-- HEADERLOGORIGHT -->
</div> <!-- header -->
</div> <!-- HEADER -->
<h2 class="blockhide">Site Navigation</h2>
<div id="topnav">
<ul id="topnavlist">
<div id="TOPNAV">
<ul id="TOPNAVLIST">
<li>
<a href="&base;/" title="Home">Home</a>
</li>
@ -93,29 +93,29 @@
<a href="&base;/support.html" title="Support">Support</a>
</li>
</ul>
</div> <!-- topnav -->
</div> <!-- headercontainer -->
</div> <!-- TOPNAV -->
</div> <!-- HEADERCONTAINER -->
<div id="content">
<div id="sidewrap">
<div id="CONTENT">
<div id="SIDEWRAP">
&nav;
</div> <!-- sidewrap -->
</div> <!-- SIDEWRAP -->
<div id="contentwrap">
<div id="CONTENTWRAP">
<h1>&title;</h1>'>
<!ENTITY footer '</div> <!-- contentwrap -->
<!ENTITY footer '</div> <!-- CONTENTWRAP -->
<br class="clearboth">
</div> <!-- content -->
<div id="footer">
</div> <!-- CONTENT -->
<div id="FOOTER">
&copyright;<br>
&date;
</div> <!-- footer -->
</div> <!-- FOOTER -->
</div> <!-- container -->
</div> <!-- containerwrap -->'>
</div> <!-- CONTAINER -->
</div> <!-- CONTAINERWRAP -->'>
<!-- macro for webbuild paper -->
<!ENTITY webbuild '

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/share/sgml/includes.header.xsl,v 1.8 2005/10/08 00:09:20 marcel Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.header.xsl,v 1.9 2005/10/14 09:12:17 ale Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -45,19 +45,19 @@
</xsl:variable>
<xsl:variable name="header2">
<span class="txtoffscreen"><a href="#content" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
<span class="txtoffscreen"><a href="#contentwrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
<div id="headercontainer">
<span class="txtoffscreen"><a href="#CONTENT" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
<span class="txtoffscreen"><a href="#CONTENTWRAP" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
<div id="HEADERCONTAINER">
<div id="header">
<div id="HEADER">
<h2 class="blockhide">Header And Logo</h2>
<div id="headerlogoleft">
<div id="HEADERLOGOLEFT">
<a href="{$base}" title="FreeBSD"><img src="{$base}/layout/images/logo.png" width="360" height="40" alt="FreeBSD" /></a>
</div> <!-- headerlogoleft -->
<div id="headerlogoright">
</div> <!-- HEADERLOGOLEFT -->
<div id="HEADERLOGORIGHT">
<h2 class="blockhide">Peripheral Links</h2>
<div id="searchnav">
<ul id="searchnavlist">
<div id="SEARCHNAV">
<ul id="SEARCHNAVLIST">
<li>
Text Size: <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Normal Text'); return false;" title="Normal Text Size">Normal</a> / <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Large Text'); return false;" title="Large Text Size">Large</a>
</li>
@ -68,22 +68,22 @@
<a href="{$base}/mailto.html" title="Contact">Contact</a>
</li>
</ul>
</div> <!-- searchnav -->
<div id="search">
</div> <!-- SEARCHNAV -->
<div id="SEARCH">
<form action="{$cgibase}/search.cgi" method="get">
<div>
<h2 class="blockhide"><label for="words">Search</label></h2>
<input type="hidden" name="max" value="25" /> <input type="hidden" name="source" value="www" /><input id="words" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" />&#160;<input id="submit" name="submit" type="submit" value="Search" />
<input type="hidden" name="max" value="25" /> <input type="hidden" name="source" value="www" /><input id="WORDS" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" />&#160;<input id="SUBMIT" name="submit" type="submit" value="Search" />
</div>
</form>
</div> <!-- search -->
</div> <!-- headerlogoright -->
</div> <!-- SEARCH -->
</div> <!-- HEADERLOGORIGHT -->
</div> <!-- header -->
</div> <!-- HEADER -->
<h2 class="blockhide">Site Navigation</h2>
<div id="topnav">
<ul id="topnavlist">
<div id="TOPNAV">
<ul id="TOPNAVLIST">
<li>
<a href="{$base}/" title="Home">Home</a>
</li>
@ -106,8 +106,8 @@
<a href="{$base}/support.html" title="Support">Support</a>
</li>
</ul>
</div> <!-- topnav -->
</div> <!-- headercontainer -->
</div> <!-- TOPNAV -->
</div> <!-- HEADERCONTAINER -->
</xsl:variable>
<xsl:variable name="header3">
@ -115,9 +115,9 @@
</xsl:variable>
<xsl:variable name="sidenav">
<div id="sidewrap">
<div id="SIDEWRAP">
<div id="sidenav">
<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<xsl:if test="$section = 'about'" >
@ -229,16 +229,16 @@
</ul>
</xsl:if>
</div> <!-- sidenav -->
</div> <!-- SIDENAV -->
</div> <!-- sidewrap -->
</div> <!-- SIDEWRAP -->
</xsl:variable>
<xsl:variable name="footer">
<div id="footer">
<div id="FOOTER">
<xsl:copy-of select="$copyright"/><br />
<xsl:copy-of select="$date"/>
</div> <!-- footer -->
</div> <!-- FOOTER -->
</xsl:variable>
</xsl:stylesheet>

View file

@ -1,6 +1,6 @@
<!-- $FreeBSD: www/share/sgml/includes.navabout.sgml,v 1.1 2005/10/04 07:37:03 murray Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navabout.sgml,v 1.2 2005/10/06 15:27:30 simon Exp $ -->
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/about.html">About</a></li>

View file

@ -1,6 +1,6 @@
<!-- $FreeBSD: www/share/sgml/includes.navcommunity.sgml,v 1.1 2005/10/04 07:37:03 murray Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navcommunity.sgml,v 1.2 2005/10/06 15:27:30 simon Exp $ -->
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/community.html">Community</a></li>

View file

@ -1,6 +1,6 @@
<!-- $FreeBSD: www/share/sgml/includes.navdevelopers.sgml,v 1.3 2005/10/08 00:09:20 marcel Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navdevelopers.sgml,v 1.4 2005/10/14 08:59:22 flz Exp $ -->
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/projects/index.html">Developers</a></li>

View file

@ -1,6 +1,6 @@
<!-- $FreeBSD: www/share/sgml/includes.navdocs.sgml,v 1.3 2005/10/06 15:30:24 simon Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navdocs.sgml,v 1.4 2005/10/06 19:27:37 ceri Exp $ -->
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/docs.html">Documentation</a></li>

View file

@ -1,8 +1,8 @@
<!-- $FreeBSD: www/share/sgml/includes.navdownload.sgml,v 1.2 2005/10/06 15:27:30 simon Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navdownload.sgml,v 1.3 2005/10/07 14:15:48 ceri Exp $ -->
<!ENTITY % relincludes SYSTEM "includes.release.sgml"> %relincludes;
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/where.html">Get FreeBSD</a></li>

View file

@ -1,6 +1,6 @@
<!-- $FreeBSD: www/share/sgml/includes.navsupport.sgml,v 1.1 2005/10/04 07:37:03 murray Exp $ -->
<!-- $FreeBSD: www/share/sgml/includes.navsupport.sgml,v 1.2 2005/10/06 15:27:30 simon Exp $ -->
<!ENTITY nav '<div id="sidenav">
<!ENTITY nav '<div id="SIDENAV">
<h2 class="blockhide">Section Navigation</h2>
<ul>
<li><a href="&base;/support.html">Support</a></li>

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!-- $FreeBSD: www/share/sgml/templates.usergroups.xsl,v 1.2 2005/09/18 06:25:01 hrs Exp $ -->
<!-- $FreeBSD: www/share/sgml/templates.usergroups.xsl,v 1.3 2005/10/04 17:18:41 hrs Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
@ -25,14 +25,14 @@
<xsl:copy-of select="$header1"/>
<body xsl:use-attribute-sets="att.body">
<div id="containerwrap">
<div id="container">
<div id="CONTAINERWRAP">
<div id="CONTAINER">
<xsl:copy-of select="$header2"/>
<div id="content">
<div id="CONTENT">
<xsl:copy-of select="$sidenav"/>
<div id="contentwrap">
<div id="CONTENTWRAP">
<xsl:copy-of select="$header3"/>
<xsl:call-template name="html-usergroups-list-header" />
@ -47,14 +47,14 @@
<xsl:with-param name="usergroups-local.xml" select="$usergroups-local.xml" />
</xsl:call-template>
</div> <!-- contentwrap -->
</div> <!-- CONTENTWRAP -->
<br class="clearboth" />
</div> <!-- content -->
</div> <!-- CONTENT -->
<xsl:copy-of select="$footer"/>
</div> <!-- container -->
</div> <!-- containerwrap -->
</div> <!-- CONTAINER -->
</div> <!-- CONTAINERWRAP -->
</body>
</html>
</xsl:template>