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?
Matt.
