coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "N. Raghavendra" <raghu AT hri.res.in>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Coqdoc: invalid characters in values of name attribute
- Date: Mon, 31 Aug 2015 13:02:59 +0530
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=raghu AT hri.res.in; spf=Pass smtp.mailfrom=gsmlcc-coq-club AT m.gmane.org; spf=Pass smtp.helo=postmaster AT plane.gmane.org
- Cancel-lock: sha1:/0G64SHNZ16rUTWeCUGbKGsVEpc=
- Ironport-phdr: 9a23:9Z94DxHIOApuRxVHuE3zrp1GYnF86YWxBRYc798ds5kLTJ75r86wAkXT6L1XgUPTWs2DsrQf27GQ7PirADZYqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7v0pMWYOl8QzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzSqUdBzA7OUg04tfqvF/NV1i162MYQ1kRx1BuRUD/5R76V4n8tCfgv6A1jDOTMs3rZbAuWHK44rwtSRm+2wkdMDtsukeRwvZ5g6JSvh+nqwZ2icaAeoiaNOdWfrncO8kXXixAWJACBGR6HoqgYt5XXKI6NuFCotylqg==
I tried to validate the Coqdoc output from some of my files with respect
to the XHML 1.0 Strict DTD, and found that all of them were OK except
for one small point. If I use an apostrophe character in the name of
some object, Coqdoc writes it as <a name="foo'">...</a>. This breaks
validation because the apostrophe isn't a valid name character in XML.
Similarly, in the index file generated by Coqdoc, there are things like
<a href="index.html#global_*">other</a>. Again, the asterisk isn't a
valid name character in XML. Right now, I am doing something like
s|<a name="([^']+)'">|<a name="\1PRIME">|g
s|<a href="([^']+)'">|<a href="\1PRIME">|g
s|<a name="([^']+)\*">|<a name="\1STAR">|g
s|<a href="([^']+)\*">|<a href="\1STAR">|g
in a sed script to replace the problem characters in the generated HTML
files with suitable strings, and change links to the anchors
accordingly. I wonder if this kind of sanitising of name attribute
values could be incorporated into Coqdoc.
Cheers,
Raghu.
--
N. Raghavendra
<raghu AT hri.res.in>,
http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
- [Coq-Club] Coqdoc: invalid characters in values of name attribute, N. Raghavendra, 08/31/2015
- <Possible follow-up(s)>
- [Coq-Club] Coqdoc: invalid characters in values of name attribute, N. Raghavendra, 08/31/2015
Archive powered by MHonArc 2.6.18.