Hi
Here is some simple basic code I am using. Just for learning.
This works combining
t.xml and t.xsl: file '2' and '3' [log '5a'].
But when I try to use file '4' in stead of '2' I do not get the expected
result.. [log '5b']
At '5x' there is the log. What should be the exact xsp file, so that the
output can be chained on into mapping the resulting xml code with xsl
file to generate the html output?
Arnold
1: perl.conf part
-----------------------------------------------------
PerlModule AxKit
AddHandler axkit .xml
AddHandler axkit .xsp
AddHandler axkit .dkb
AxDebugLevel 10
PerlSetVar AxXPSInterpolate 1
AxAddXSPTaglib AxKit::XSP::Param
AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
<Location /xmltest>
SetHandler perl-script
PerlHandler AxKit
AxAddStyleMap application/x-xpathscript
Apache::AxKit::Language::XPathScript
</Location>
2: t.xml [ not in xmltest dir ]
--------------------------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="t.xsl" type="text/xsl"?>
<page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
language="Perl">
<greeting>hello</greeting>
</page>
3: t.xsl [ not in xmltest dir ]
--------------------------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<html>
<head><title>taglib</title></head>
<body>
<table>
<tr>
<td><xsl:apply-templates select="//greeting" /></td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="greeting" >
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
4: t.xsp [ now however with xsp part ]
------------------------------------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="." type="application/x-xsp"?>
<?xml-stylesheet href="t.xsl" type="text/xsl"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
language="Perl">
<page>
<greeting>hello</greeting>
</page>
</xsp:page>
5a: Log [ without xsp]
----------------------------------------------------------------------------------------
[AxKit] handler called for /xmltestxsp/t.xml
[AxKit] media: screen, preferred style: #default
[AxKit] Cache: key = e1053b9ba03d97cbb899bb1a1981933a
[AxKit] getting styles and external entities from the XML
[AxKit] styles not cached - calling $provider->get_styles()
[AxKit] using XS get_styles (libxml2)
[AxKit] calling xs_get_styles_fh()
[AxKit] calling xs_get_styles_str()
[AxKit] parse_pi: href = t.xsl
[AxKit] parse_pi: type = text/xsl
[AxKit] xs_get_styles returned: , , page
[AxKit] Calling GetMatchingProcessors with (screen, , , , page)
[AxKit] get_styles: loading style modules
[AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[AxKit] resetting cache with no preferred style (#default ne )
[AxKit] Cache: key = c60cea0c1d7cd4c49bd56f27f332325e
[AxKit] Checking dependencies
[AxKit] xml newer than cache
[AxKit] some condition failed. recreating output
[AxKit] styles: Apache::AxKit::Language::Sablot(t.xsl)
[AxKit] [uri] File Provider looking up uri t.xsl
[AxKit] [uri] File Provider set filename to
/usr/local/apache/htdocs/xmltestxsp/t.xsl
[AxKit] about to execute: Apache::AxKit::Language::Sablot::handler
[AxKit] execution of: Apache::AxKit::Language::Sablot::handler finished
[AxKit] Cache: key = 7b6e3df75b8272e75f645b5995bbf879
[AxKit] [Cache] writing cache file
/usr/local/apache/htdocs/xmltestxsp/.xmlstyle_cache/7b/6e/3df75b8272e75f645b5995bbf879
[AxKit] writing xml string to cache and delivering to browser
[AxKit] [Cache] writing cache file
/usr/local/apache/htdocs/xmltestxsp/.xmlstyle_cache/c6/0c/ea0c1d7cd4c49bd56f27f332325e
[AxKit] Cache: Getting content-type
5b: [ while using xsp ]
--------------------------------------------------------------------------------------------
[AxKit] handler called for /xmltestxsp/t.xsp
[AxKit] media: screen, preferred style: #default
[AxKit] Cache: key = 38340e964b93d65a49f391b8dc784593
[AxKit] getting styles and external entities from the XML
[AxKit] styles not cached - calling $provider->get_styles()
[AxKit] using XS get_styles (libxml2)
[AxKit] calling xs_get_styles_fh()
[AxKit] calling xs_get_styles_str()
[AxKit] parse_pi: href = .
[AxKit] parse_pi: type = application/x-xsp
[AxKit] parse_pi: href = t.xsl
[AxKit] parse_pi: type = text/xsl
[AxKit] xs_get_styles returned: , ,
{http://www.apache.org/1999/XSP/Core}page
[AxKit] Calling GetMatchingProcessors with (screen, , , ,
{http://www.apache.org/1999/XSP/Core}page)
[AxKit] get_styles: loading style modules
[AxKit] get_styles: looking for mapping for style type:
'application/x-xsp'
[AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[AxKit] resetting cache with no preferred style (#default ne )
[AxKit] Cache: key = d885605b96310f0f210d309d8e57c6c4
[AxKit] cache doesn't exist
[AxKit] some condition failed. recreating output
[AxKit] styles: Apache::AxKit::Language::XSP(.)
[AxKit] styles: Apache::AxKit::Language::Sablot(t.xsl)
[AxKit] [uri] File Provider looking up uri .
[AxKit] [uri] File Provider set filename to
/usr/local/apache/htdocs/xmltestxsp
[AxKit] about to execute: Apache::AxKit::Language::XSP::handler
[AxKit] Caught an exception
[error] Bizarre copy of ARRAY in aassign at
/usr/lib/perl5/5.6.0/Carp/Heavy.pm line 79.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]