On Thursday 13 June 2002 5:41 pm, David J Duchscher wrote:
> I am in the process of learning AxKit and while playing with the demos
> have run into some problems. Can anyone give me insight as to where I
> have gone wrong here or have I run into a bug. If I remove the <xsp:expr>
> <xsp:expr/>, it will run to completion. Otherwise, thing blow up on me.
> I am running the most recent versions of all modules and libraries. Here
> is the simple test script that I shows the behavior I am seeing.
>
> <?xml version="1.0"?>
> <?xml-stylesheet href="NULL" type="application/x-xsp"?>
> <xsp:page language="Perl"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:global="http://www.creITve.de/2002/XSP/Global"
>
> <html>
> <head>
> <title>testing</title>
> </head>
> <body>
> <global:set-attribute name="Accesses">
> <xsp:expr><global:get-attribute name="Accesses"/>+1</xsp:expr>
> </global:set-attribute>
> <p><global:get-attribute name="Accesses"/></p>
> </body>
> </html>
> </xsp:page>
That's a bit too much magic for XSP I'm afraid...
Try:
<body>
<xsp:logic>
my $val = <global:get-attribute name="Accesses"/> + 1;
<global:set-attribute name="Accesses">
<xsp:expr>$val</xsp:expr>
</global:set-attribute>
</xsp:logic>
<p>...
Matt.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]