From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6487f59679c615d8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.195.165 with SMTP id if5mr6843690pbc.1.1337012415562; Mon, 14 May 2012 09:20:15 -0700 (PDT) Path: pr3ni25469pbb.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Suggestion for RM HTML formatter extension Date: Mon, 14 May 2012 17:20:09 +0100 Organization: A noiseless patient Spider Message-ID: References: <82aa1ud0l3.fsf@stephe-leake.org> <20120509131736.63c924c8@vostro> <82lil0gxbm.fsf@stephe-leake.org> <20120511040710.52bbc3fd@vostro> <87obpv17gd.fsf_-_@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="vJI7ZKsqp3rEVm1GODUR+A"; logging-data="21206"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Yx7M+UaMl9CPssh7T5NyVa3LYrJvCAiE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:RpGTE2RV0XNB34lswz/+7WzrcPs= sha1:q2Cd+BiUAf60HqHxK8TMQCtJxqc= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Date: 2012-05-14T17:20:09+01:00 List-Id: Manuel Collado writes: > El 11/05/2012 17:32, Simon Wright escribió: >> Jacob Sparre Andersen writes: >>>... >>> If I could write and people would >>> end up at paragraph 6 in section 9.7.3 of the Ada05 reference manual, it >>> would be much easier than linking to the whole section and then writing >>> that people have to scroll down to paragraph 6. >> >> I'd have thought that would be straightforward enough .. the paragraph >> numbers are in a div with class paranum. A simple patch means I can >> write for para 13/2 of the 2005 manual (I'm not at >> all sure of the legality of that slash, but Safari and Chrome are happy!!). > > Is seems that p13/2 as a "name" target is legal in HTML, but not in > XHTML. In addition, IIUC the use of the "name" attribute is deprecated > in favor of the "id" one, and XHTML5 even has dropped it. > > "id" values don't allow slashes. But slashes could be easily converted > to hyphens or underscores, if browser standard compliance really > matters. So we could write , for instance > > In addition, if old and new browsers have to be supported, I believe > it is also possible to have both "id" and "name" target attributes > with exactly the same, duplicated value. The currently-generated doctype (for ARM05, I suspect it might be different for other possibilities) is so XHTML compliance isn't strictly an issue. No bad thing, of course. I see that Jacob's original request didn't ask for my 'p', so I should probably have left it off. The cross-references in the current ARM appear to use generated names like I7733, need to avoid clashes!