Re: Proposal: XSP attribute interpolation

2003-07-10 Thread Matt Sergeant
On Wed, 9 Jul 2003, Kip Hampton wrote: > Robin Berjon wrote: > > > > > > They don't care about being compatible with us. In fact, just because > > it's suggested by one of us and not one of them they'll reject it as > > "dirty". I'd say don't bother wasting your patience on them. > > You may be ri

Re: [PATCH] Re: Proposal: XSP attribute interpolation

2003-07-10 Thread Jörg Walter
Am Wednesday, 09. July 2003 16:49, schrieb Matt Sergeant: > On Wed, 9 Jul 2003, Matt Sergeant wrote: > > 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) { > > << > > } >

Re: Proposal: XSP attribute interpolation

2003-07-09 Thread Kip Hampton
Robin Berjon wrote: They don't care about being compatible with us. In fact, just because it's suggested by one of us and not one of them they'll reject it as "dirty". I'd say don't bother wasting your patience on them. You may be right, but that doesn't mean we shouldn't try. If they're wrong

[PATCH] Re: Proposal: XSP attribute interpolation

2003-07-09 Thread Matt Sergeant
On Wed, 9 Jul 2003, Matt Sergeant wrote: > 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) { > << > } Patch to implement this attached. Shall I apply it? -- <:->get a SMa

Re: Proposal: XSP attribute interpolation

2003-07-09 Thread Robin Berjon
Matt Sergeant wrote: Yes, using the exact same rules as XSLT would be good here (although I hear the spec isn't entirely clear in this section). I find it clear. Basically escaping a { or } is done by doubling it. The same rules apply as what normally does for \. I'm not sure about having {} in

Re: Proposal: XSP attribute interpolation

2003-07-09 Thread Matt Sergeant
On Wednesday, Jul 9, 2003, at 08:36 Europe/London, Jörg Walter wrote: 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) { << } Should be fairly simple to do. Thoughts? Yes please! I'v

Re: Proposal: XSP attribute interpolation

2003-07-09 Thread Jörg Walter
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) { > >

Proposal: XSP attribute interpolation

2003-07-09 Thread 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) { $n << } I think we should take a leaf out of XSLT's book