Re: [css4-page] Cross-references

Le 08/02/2013 01:57, Chris Lilley a écrit :
> Hello Simon,
>
> Friday, February 8, 2013, 9:34:42 AM, you wrote:
>
>> Context:
>> http://krijnhoetmer.nl/irc-logs/css/20130205#l-670
>
>> Daniel, in Tucson you talked about more powerful page headers/footers,
>> bookmarks, footnotes, etc. Another feature that has a big demand for
>> printing is cross-references. These allow, among other things, tables of
>> contents with automatic page numbers.
>
> Yes.
>
> One  of  the  things  that  often stops me using css-generated list or
> header numbering (and instead to hard-code the numbers in the content)
> is the need to refer to them in prose:
>
>    as described in section 4.2 …
>    item 3 in the list above demonstrates …
>
> Note that these are all same-document references[1].

I think this is covered by GCPM’s target-counter().


> [1] I imagine it will be another 10 years before we can make a robust
> but autonumbered reference from chapter5.html to section 2.7.4 of
> chapter2.html, both using stylesheet-generated numbering.

Actually target-counter()’s syntax could also allow this. (The target is 
an URL, presumably one with a #fragment.) Implementing it is of course 
another story. This is one of the points where the feature is yet 
under-specified.

-- 
Simon Sapin

Received on Friday, 8 February 2013 15:33:18 UTC