Hi,

I try to generate an XSP page by using an XSL file.  I get an error when I try 
to use the generated page.  The error is:


message The namespace prefix "xsp-request" was not declared.

description org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.xml.sax.SAXParseException: The namespace prefix "xsp-request" 
was not declared.


This is my sitemap


                        <map:match pattern="db/*/*.xsp">
                                <map:generate src="db/{1}/{2}.xml"/>
                                <map:transform src="xsl/db.generatexsp.xsl"/>
                                <map:serialize type="xml"/>
                        </map:match>
                        <map:match pattern="db/*/*.html">
                                <!--map:generate src="test.xsp" type="xsp"/-->
                                <map:generate src="cocoon:/db/{1}/{2}.xsp" 
type="xsp"/>

                                <map:serialize type="xml"/>
                        </map:match>

My XSL file is this one, containing the declarations

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
        xmlns:fo="http://www.w3.org/1999/XSL/Format";
        xmlns:xsp-session="http://apache.org/xsp/session/2.0";
        xmlns:xsp-request="http://apache.org/xsp/request/2.0"; 
        xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
        xmlns:xsp="http://apache.org/xsp";>

        <xsl:template match="/xml">
                <xsp:page language="java"
                                        xmlns:xsp="http://apache.org/xsp";
                                        
xmlns:esql="http://apache.org/cocoon/SQL/v2";
                                        
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
                                        
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
                                        create-session="true">

                        <xml>


                        <esql:connection>
                                <esql:pool>implements</esql:pool>

                                <esql:execute-query>
                                        <esql:query>select count(*) as 
fieldcount from tblSiteRegisteredUser</esql:query>

                                        <esql:results>
                                                <esql:row-results>
                                                        <layout>
                                                                <content>
                                                                        
<esql:get-string column="fieldcount"/>
                                                                </content>
                                                        </layout>
                                                </esql:row-results>
                                        </esql:results>

                                        <esql:error-results>
                                                <layout>
                                                        <content>
                                                                
<p><esql:get-message/></p>
                                                        </content>
                                                </layout>
                                        </esql:error-results>
                                </esql:execute-query>
                        </esql:connection>
                        </xml>
                </xsp:page>
        </xsl:template>
</xsl:stylesheet>

The strange thing is, when I generate with the type equal to "xml", it does 
generate the XML.  When I save it to "test.xsp" (that's the line in comment) 
and try to use it from "file", it works.  So the generated file by XSL is 
valid.  But when I use it from the pipelines, it does not work because of 
that error ....

Any idea ??

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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

Reply via email to