Re: [css3-gcpm] Re: conditional floats on paged media

On Fri, 2012-08-24 at 01:27 +0200, Håkon Wium Lie wrote:
> Also sprach Liam R E Quin:

>  > A declarative alternative might be a way to express alternatives based
>  > on conditionals,
>  > 
>  > a.xref {
>  >     content:
>  >       /* chapter number, figure number, here, then... */,
>  >       when(target.nextpage, "see next page")
>  >       when(target.pagenumber = pagenumber, "(this page)")
>  >      ;
>  > }
> 
> Interesting idea. It's beginning to look like a programming language. Hmm.

XSLT (which is a declarative prog. lang.) isn't _all_ bad :-)

But I do think it useful to avoid keywords like if/then/else that to
many people suggest procedural code.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

Received on Friday, 24 August 2012 01:25:20 UTC