On Saturday 13 April 2002 01:04, Matt Sergeant wrote:
> On Fri, 12 Apr 2002, Markus Jais wrote:
> > hello
> > I have a question on using <xsp:expr>
> >
> > I have this code
> > <xsp:expr> $gmx->get_mail_index($customerno, "inbox") </xsp:expr>
> >
> > the get_mail_index function returns a xml string in the form of
> >
> > <folderIndex><mail><from>Markus Jais></from></mail></folderIndex>
> >
> > but when I watch the sources of the output in mozilla
> > I see something like this:
> >
> > ...
> > <folderIndex><mail><from>
> > ...
> >
> > that is the "<" and ">" are all convertet to "<" and ">".
> > how can I accomplish that the correct xml without escaping
> > is inserted. this is important for my application, because
> > I am using stylesheet which process the inserted xml.
>
> Either use TaglibHelper or AxKit::XSP::Util's <util:include-expr> tag.
thanks for the tip but now I get a strange error:
this is my xml code:
<xsp:page
language="Perl"
xmlns:xsp="http://apache.org/xsp/core/v1"
xmlns:util="http://apache.org/xsp/util/v1"
>
....
<page>
<title>Mailindex</title>
<headline>Mailindex for <xsp:expr>$customerno</xsp:expr></headline>
<util:include-expr>
<xsp:expr>$gmx->get_mail_index($customerno, "inbox")</xsp:expr>
</util:include-expr>
</page>
</xsp:page>
and this is the error in my apache logfile:
[Mon Apr 15 16:11:23 2002] [error] [client 127.0.0.1] [AxKit] [Error] Empty
string at /usr/lib/perl5/site_perl/5.6.1/i586-linux/XML/LibXML.pm line 191.
[Mon Apr 15 16:11:23 2002] [error] [client 127.0.0.1] [AxKit] From:
/usr/lib/perl5/site_perl/5.6.1/i586-linux/Apache/AxKit/Exception.pm : 9
[Mon Apr 15 16:11:23 2002] [error] ErrorStylesheet: No module mapping found
for type ''
unfortunately I can not make any sense of this information.
I added
AxAddXSPTaglib AxKit::XSP::Util
to httpd.conf
does anybody know what might be wrong??
markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]