[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#248993: www.debian.org: "!" not allowed in "id" attribute



Package: www.debian.org
Severity: normal
Tags: patch

Hi,

according to the validation page at
   http://people.debian.org/~alfie/validate/en
"!" is not allowed in "id" attributed

I think the attached patch should solve this issue for the definition of
the anchor, but maybe not for the links pointing to it, please could you
check the patch and apply it if it is right.

Regards


Nicolas Bertolissio

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

-- 
# This template was originally intended to unify the layout of the Debian-Med
# pages, but was extended to be useful for all Custom Debian Distributions.
#
# The way to use this template is to add a parameter to the #use line in the
# .wml file, e.g. #use wml::debian::debian-cdd CDD="Debian-Med"
#
# Currently valid values for CDD include:
#  - Debian-Med
#  - Debian-Jr
#  - Debian-Lex
#
# Copyright (c) 2004 Tobias Toedter <t.toedter@gmx.net>
# $Id: debian-cdd.wml,v 1.4 2004/05/12 16:09:09 toddy Exp $

#use wml::debian::common_tags

<bind-gettext-domain domain="debian-cdd" />

# assign a sane default value, if CDD is not set
$(CDD=$(CDD:-"Debian-Med"))


# These tags are only for gettext translations

<define-tag description>
<preserve cdd-name />
<when <string-eq "$(CDD)" "Debian-Med" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Med</gettext>" />
</when>
<when <string-eq "$(CDD)" "Debian-Jr" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Jr</gettext>" />
</when>
<when <string-eq "$(CDD)" "Debian-Lex" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Lex</gettext>" />
</when>
<gettext domain="debian-cdd">The list below includes various software projects which are of some interest to the <get-var cdd-name /> Project. Currently, only a few of them are available as Debian packages. It is our goal, however, to include all software in <get-var cdd-name /> which can sensibly add to a high quality Custom Debian Distribution.</gettext>
<restore cdd-name />
</define-tag>

<define-tag overview>
<gettext domain="debian-cdd">For a better overview of the project's availability as a Debian package, each head row has a color code according to this scheme:</gettext>
</define-tag>

<define-tag official-debs>
<preserve url />
<set-var url="#official-debs" />
<gettext domain="debian-cdd">Green: The project is <a href="<get-var url />">available as an official Debian package</a></gettext>
<restore url />
</define-tag>

<define-tag inofficial-debs>
<preserve url />
<set-var url="#inofficial-debs" />
<gettext domain="debian-cdd">Yellow: The project is <a href="<get-var url />">available as an inofficial Debian package</a></gettext>
<restore url />
</define-tag>

<define-tag debs-not-available>
<preserve url />
<set-var url="#debs-not-available" />
<gettext domain="debian-cdd">Red: The project is <a href="<get-var url />">not (yet) available as a Debian package</a></gettext>
<restore url />
</define-tag>

<define-tag contact>
<preserve cdd-name cdd-list-url />
<when <string-eq "$(CDD)" "Debian-Med" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Med</gettext>" />
  <set-var cdd-list-url="mailto:debian-med@lists.debian.org"; />
</when>
<when <string-eq "$(CDD)" "Debian-Jr" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Jr</gettext>" />
  <set-var cdd-list-url="mailto:debian-jr@lists.debian.org"; />
</when>
<when <string-eq "$(CDD)" "Debian-Lex" />>
  <set-var cdd-name="<gettext domain="debian-cdd">Debian-Lex</gettext>" />
  <set-var cdd-list-url="mailto:debian-lex@lists.debian.org"; />
</when>
<gettext domain="debian-cdd">If you discover a project which looks like a good candidate for <get-var cdd-name /> to you, or if you have prepared an inofficial Debian package, please do not hesitate to send a description of that project to the <a href="<get-var cdd-list-url />"><get-var cdd-name /> mailing list</a>.</gettext>
<restore cdd-name cdd-list-url />
</define-tag>

<define-tag title-official-debs>
<gettext domain="debian-cdd">Official Debian packages</gettext>
</define-tag>

<define-tag title-inofficial-debs>
<gettext domain="debian-cdd">Inofficial Debian packages</gettext>
</define-tag>

<define-tag title-debs-not-available>
<gettext domain="debian-cdd">Debian packages not available</gettext>
</define-tag>

<define-tag no-projects>
<gettext domain="debian-cdd">There are no projects which fall into this category.</gettext>
</define-tag>

<define-tag no-homepage>
<gettext domain="debian-cdd">No homepage known</gettext>
</define-tag>

<define-tag license>
<gettext domain="debian-cdd">License:</gettext>
</define-tag>

<define-tag free>
<gettext domain="debian-cdd">Free</gettext>
</define-tag>

<define-tag non-free>
<gettext domain="debian-cdd">Non-Free</gettext>
</define-tag>

<define-tag unknown>
<gettext domain="debian-cdd">Unknown</gettext>
</define-tag>

<define-tag info-official-deb>
<gettext domain="debian-cdd">Official Debian package</gettext>
</define-tag>

<define-tag info-inofficial-deb>
<gettext domain="debian-cdd">Inofficial Debian package</gettext>
</define-tag>

<define-tag info-deb-not-available>
<gettext domain="debian-cdd">Debian package not available</gettext>
</define-tag>


# The table showing the info about a project

<define-tag project endtag=required>
<preserve anchorid name url license deb />
<set-var %attributes />
<ifeq <get-var anchorid /> ""
  <set-var anchorid=<subst-in-string <downcase <get-var name /> /> "\W" "_" /> />
  ""
/>
<table class="project" summary="<get-var name>">
  <ifeq <get-var deb /> "" \
    "<tr class="deb-not-available">" \
    <ifeq <match <get-var deb /> "http://packages.debian.org/"; /> "true" \
      "<tr class="deb-official">" \
      "<tr class="deb-inofficial">" \
    /> \
  />
    <td class="project-name">
      <a name="<get-var anchorid />" id="<get-var anchorid />"></a>
      <strong><get-var name /></strong>
      <br />
      <ifeq <get-var url /> "" \
        "<no-homepage />" \
	"<url <get-var url /> />" \
      />
    </td>
    <td class="project-license">
      <em><license /> \
      <ifeq <get-var license /> "" \
        "<unknown />" \
	"<get-var license />" \
      />\
      </em>
      <br />
      <ifeq <get-var deb /> "" \
        "<info-deb-not-available />" \
	<ifeq <match <get-var deb /> "http://packages.debian.org/"; /> "true" \
	  "<a href="<get-var deb />"><info-official-deb /></a>" \
          "<a href="<get-var deb />"><info-inofficial-deb /></a>" \
	/>\
      />\
    </td>
  </tr>
  <tr>
    <td class="project-description" colspan="2">
      %body
    </td>
  </tr>
</table>
<restore anchorid name url license deb />
</define-tag>


# Start of the page

#use wml::debian::template title="<pagetitle />"
{#style#:<link rel="stylesheet" href="debian-cdd.css" type="text/css" />:#style#}

<p><description /></p>
<p><overview /></p>
<ul>
  <li><official-debs /></li>
  <li><inofficial-debs /></li>
  <li><debs-not-available /></li>
</ul>
<p><contact /></p>

Attachment: signature.asc
Description: Digital signature


Reply to: