Am Wednesday, 09. July 2003 09:20, schrieb Matt Sergeant:
> At the moment I often end up typing very verbose XSP pages to get
> attributes in elements containing expressions. Here's an example from
> some recent code:
>
> if (my $n = $page->previous_page) {
> <pagenav previous="1">
> <xsp:attribute
> name="page"><xsp:expr>$n</xsp:expr></xsp:attribute>
> <<
> </pagenav>
> }
>
> I think we should take a leaf out of XSLT's book and allow
> interpolation in attributes, so that this would work:
>
> if (my $n = $page->previous_page) {
> <pagenav previous="1" page="{$n}"><<</pagenav>
> }
>
> Should be fairly simple to do. Thoughts?
Yes please! I've been longing for that for quite some time now. So we scrap
that Cocoon compatibility now? Fine by me... :-)
Attribute value templates will be made exactly as in XSLT, I assume?
(regarding quoting of {}'s, multiple {...}'s in one attribute and the like)
--
CU
Joerg