OK - before I tie my head in knots with this one I thought I 'd ask to see if anyone else has encountered this before
or if I am doing something really stupid.


I have an Axkit processing sequence that works.
I then add a trivial (really trivial) stylesheet at the end of the process - and I get a fundamental error on an unknown namespace (I think) from the Axkit chain.


So - the symptoms seem to say that adding a further processing step is corrupting an earlier one?
(and seems to be removing namespace declarations).


Has anyone encountered anything like this before - or got any suggestions about how to debug this?
(I'm already using AxTraceIntermediate and AxDebugLevel 10)




Basic details follow below in case you have the patience to want to help further.



-----------------------------------------------------------------
AxKit error:
The following error occurred: Undefined namespace prefix xmlXPathCompiledEval: evaluation failed


-----------------------------------------------------------------
AxKit HTTPD.conf settings:
(I've blanked out the lines for other RootProcessors that don't get triggered.


Line 1136 is a provider I have written - and which I am testing.
(It works standalone - but I also use it within XSLT's to call other documents.)
1136 AxContentProvider DL::DbXML_Provider
...
I have AxTraceIntermediate set - but I only get the error XML/HTML - not the documents processed so far.
1145 AxTraceIntermediate /tmp/axkit
1146
1147 AxAddPlugin Apache::AxKit::StyleChooser::Cookie
1148 AxAddPlugin Apache::AxKit::StyleChooser::QueryString
1149 <AxStyleName main>
1150...
1151 AxAddRootProcessor application/x-xpathscript /DRE/axkit_stylesheets/dl_db_style.xps TABLE
1152 AxAddRootProcessor text/xsl /DRE/axkit_stylesheets/dl_db_xml2html.xsl TABLE
1153...
This is the line (1154) that gets added and causes failure.
1154 AxAddProcessor text/xsl /DRE/axkit_stylesheets/db_tabregion.xsl
1155 </AxStyleName>
1156 AxStyle main


-----------------------------------------------------------------

The trivial stylesheeet that is added
(for testing purposes as more complex ones were also failing) - db_tabregion.xsl


1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
2 xmlns:exsl="http://exslt.org/common";
3 xmlns:dl="http://www.datalucid.com/";
4 exclude-result-prefixes="exsl dl"
5 >
6 <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration='no' media-type='text/html' indent='yes'/>
7 <xsl:decimal-format name="nan0" NaN="0"/>
8
9 <!-- ============================================================ -->
10 <xsl:template match="/">
11 <html>
12 <body>
13 <h1>TABREGION</h1>
14 </body>
15 </html>
16 </xsl:template>
17 <!-- ============================================================ -->
18 </xsl:stylesheet>
-----------------------------------------------------------------


Diagnostic info follows:

-----------------------------------------------------------------
I have turned on AxDebugLevel 10
It says the error is caused at the line
(I'm not showing the rest of the log backtrace)

XML::LibXML::Node::findnodes('XML::LibXML::Element=SCALAR(0xb2da4f0)','dl:foclass[1]') called at /usr/lib/perl5/site_perl/5.8.3/DL/STYLE.pm line 459

So - it is suggesting that the 'dl: namespace prefix is undefined.

DL/STYLE.pm is called in dl_db_style.xps - at line 1151 in my httpd.conf - i.e. it has been called successfullly when line 1154 is commented out.

-----------------------------------------------------------------
Attempt to demonstrate the accessing dl_fostyles.xml works OK.


The dl:foclass[1] findnodes is called on a document (dl_fostyles.xml) retrieved using Axkit and the DbXML_Provider.
It is the 1st processing of dl_fostyles.xml in the processing chain.


Running wget from the command line to retrieve this document (using dummy style to stop Axkit style processing)

[EMAIL PROTECTED] DRE]# wget http://www.datalucid.com/dbxml/dl_fostyles.xml?style=plain

I retrieve a correct document
1st few lines:

1 <?xml version="1.0" encoding="UTF-8"?>
2 <dl:classes xmlns="http://www.datalucid.com/"; xmlns:dl="http://www.datalucid.com/";>
3 <!--DOCTYPE classes SYSTEM "dl_fostyles.dtd"-->
4 <dl:forules>
5 <dl:forule name="page" cssname="page">
6 <dl:fostyle foname="page-width" cssname="width" value="29.7cm"/>
7 <dl:fostyle foname="page-height" cssname="height" value="21.0cm"/>
8 <dl:fostyle foname="margin-top" value="0.3cm"/>
9 <dl:fostyle foname="margin-bottom" value="0.3cm"/>
10 <dl:fostyle foname="margin-left" value="0.7cm"/>


-----------------------------------------------------------------
AND - if I access this through Axkit in the browser:

http://www.datalucid.com/dbxml/dl_fostyles.xml?style=p1

I also get a correct document with namespace prefixes and namespace 
declarations:


<?xml version="1.0" encoding="UTF-8"?> <dl:classes xmlns="http://www.datalucid.com/"; xmlns:dl="http://www.datalucid.com/";> <!--DOCTYPE classes SYSTEM "dl_fostyles.dtd"--> <dl:forules> <dl:forule name="page" cssname="page"> <dl:fostyle foname="page-width" cssname="width" value="29.7cm"/> <dl:fostyle foname="page-height" cssname="height" value="21.0cm"/> <dl:fostyle foname="margin-top" value="0.3cm"/> <dl:fostyle foname="margin-bottom" value="0.3cm"/> <dl:fostyle foname="margin-left" value="0.7cm"/>

-----------------------------------------------------------------


Any clues or suggestions for how to debug this are most welcome.


Mike


-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005


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



Reply via email to