W3C home > Mailing lists > Public > www-style@w3.org > February 2013

[GCPM(?)] In-document cross references given numbers from numbered content

From: Cedric Sodhi <manday@gmx.net>
Date: Wed, 20 Feb 2013 10:48:13 +0100
To: www-style@w3.org
Message-ID: <20130220094811.GC23206@slate.Speedport_W723_V_Typ_A_1_00_096>
Consider a paper with formulas (assume HTML), where formulas are
numbered [css3-list] and the author wants to refer to a formula
elsewhere in the document.

Necessarilly, the author will have to provide a reference to the
formula, such as by the href-attribute of the a-element. For
automatically numbered content, it would be desirable to obtain a
generated token for the associated number, to mention it in the text.


<span class="formula" id="pyth_theorem">a^2 + b^2 = c^2</span> is numbered (2.3) according
to the numering rules.

Elsewhere in the document, the author writes something like

By virtue of <a href="#pyth_theorem">formula ???</a>

CSS should allow, by one way or another, for "???" in the above example
to be replaced by the number counting the span "pyth_theorem".

Is this already foreseen somewhere in the current state of CSS3?
Received on Wednesday, 20 February 2013 14:02:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:08 UTC