Re: PDF bookmarks (was: Re: extensions to FO)

I quite like it myself.

Regards,
Arved

On Sun, 04 Feb 2001, Nikolai Grigoriev wrote:
>
> What if we create a separate bookmark tree as a top-level element outside
> fo:page-sequences (e.g. immediately after fo:declarations), like a table of
> content:
> 
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
>          xmlns:fox="http://www.w3.org/2001/XSL/Format/Extensions">
>   <fo:layout-master-set>...</fo:layout-master-set>
> 
>   <fox:bookmark internal-destination="whole-document">
>      <fox:label>My Document</fox:label>
>      <fox:bookmark internal-destination="intro">
>         <fox:label>Introduction</fox:label>
>      </fox:bookmark>
>      <fox:bookmark internal-destination="sect-1">
>         <fox:label>Section 1 Title</fox:label>
>         <fox:bookmark internal-destination="subsect-1-1">
>            <fox:label>Subsection 1.1 Title</fox:label>
>         </fox:bookmark>
>         .....
>     </fox:bookmark>
>     .....
>   </fox:bookmark>
> 
>   <fo:page-sequence .....>
>   ... ... ... ...
> 
> The "fox:" prefix stands for "FO eXtensions" :-).
> The features are:
> 
> 1) No standard elements are redefined - only extension
>    elements are used.
> 2) The whole thing is atomic - dropping it as a whole
>    makes no damage.
> 3) The tree ordering of bookmarks is imposed by the syntax.
> 4) The bookmark tree is arbitrary, and not constrained by
>    the logical structure of divisions in the document.
> 5) (implementation-specific) The implementation is similar
>    to fo:basic-link[@internal-destination] - activation
>    behaviour is essentially the same.
> 
> What do you think of it?
> 
> Regards,
> Nikolai

Received on Sunday, 4 February 2001 18:08:49 UTC