Hi,
I'm very new to perl so I'm having trouble tracking down what's going
on...
With AxKit 1.6, the following xsp gives a 500 server error;
<?xml version='1.0'?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<xsp:page xmlns:xsp="http://apache.org/xsp/core/v1";>
    <xsp:logic>
    </xsp:logic>
</xsp:page>

while the following does not;

<?xml version='1.0'?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<xsp:page xmlns:xsp="http://apache.org/xsp/core/v1";>
    <foo />
    <xsp:logic>
    </xsp:logic>
</xsp:page>

from the error_log, for the former;

[Thu Aug 15 10:02:10 2002] [warn] [client 141.xxx.xxx.xxx] [AxKit] about
to execute: Apache::AxKit::Language::XSP::handler
[Thu Aug 15 10:02:10 2002] [warn] [client 141.xxx.xxx.xxx] [AxKit] XSP:
parsing fh
[Thu Aug 15 10:02:10 2002] [warn] [client 141.xxx.xxx.xxx] [AxKit]
Recompiling XSP script
Script:
1 package
Apache::AxKit::Language::XSP::ROOT::home::ben::www::stupidity_2exsp;
@Apache::AxKit::Language::XSP::ROOT::home::ben::www::stupidity_2exsp::ISA
= ('Apache::AxKit::Language::XSP::Page');
2 use Apache;
3 use Apache::Constants qw(:common);
4 use XML::LibXML;#initialize xsp namespace
5 #initialize xsp namespace
6
7
8
9 return OK;
10 }
11
[Thu Aug 15 10:02:10 2002] [warn] [client 141.xxx.xxx.xxx] [AxKit]
Caught an exception
[Thu Aug 15 10:02:10 2002] [error] [client 141.xxx.xxx.xxx] [AxKit]
[Error] Compilation failed: Unmatched right curly bracket at (eval 14)
line 10, at end of line
syntax error at (eval 14) line 10, near ";
}"

 and so forth...

Perl version is 5.6.1, Apache/1.3.23, on redhat 7.3 (kernel v2.4.18-3)

I had a look through the archives, but I didn't see anything that I
thought explained this.

.
.
.

All I was trying to achieve was to use xsp to take a CGI parameter, and
embed it into the start of an (already existing) XML document, so that
the xslt template can render certain parts of the document in different
ways (Apache::AxKit::StyleChooser::QueryString not being appropriate.) I
(perhaps foolishly) thought that I could do this without Perl, by
something like;

<?xml version='1.0'?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>

<xsp:page xmlns:xsp="http://apache.org/xsp/core/v1";
          xmlns:util="http://apache.org/xsp/util/v1";
          xmlns:param="http://axkit.org/NS/xsp/param/v1";
>
  <xsp:structure>
  </xsp:structure>

  <xsp:logic>

    <xsp:element name="dynamic_state">
      <param:state />
    </xsp:element>

    <util:include-file>menu.xml</util:include-file>

  </xsp:logic>
</xsp:page>

...to take the CGI parameter "state", put its content in a
<dynamic_state> element, and then include an xml file afterwards. But
this also generates perl with a brace deficiency, and possibly namespace
problems. Aargh.

any help much appreciated,
thanks,

 Ben

-----
Panic



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to