cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sylvain.The...@swisscom.com>
Subject XSP error
Date Tue, 15 Oct 2002 11:32:30 GMT
Hello,

I try to test my first XSP page but I have this error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later. 
--------------------------------------------------------------------------------
The namespace prefix is not allowed to start with the reserved string "xml". Error processing
resource 'http://localhost:8080/cocoon/helloworld'. Line 2, 
Position 11 

<document xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsp="http://apache.org/xsp">
----------^


the sitemap fragment looks like:
<map:pipeline>
    <map:match pattern="helloworld">
        <map:generate src="helloworld.xsp" type="serverpages"/>
        <map:serialize type="xml"/>
    </map:match>
</map:pipeline>

and the helloworld.xsp looks like:
<xsp:page xmlns:xsp="http://apache.org/xsp">
    <xsp:logic>
        String text="Hello World";
    </xsp:logic>
    <document>
        <xsp:expr>text</xsp:expr>
    </document>  
</xsp:page>


Anyone has an idea?
Thank you
Sylvain

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message