This problem looks very strange.
When this problem appended, I tried to test a simple helloworld application (without
XSP):
<map:pipeline>
<map:match pattern="helloworld">
<map:generate src="helloworld.xml"/>
<map:transform src="helloworld2html.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
and the result was a HTML page which looks like:
-<html>
-<body>
<h1>Hello World>/h1>
</body>
</html>
The HTML tags wasn't interpreted!
It's very strange.
I have reloaded Tomcat three or four times and now the helloworld example above AND
the XSP helloworld example (with the xml serializer) work very well.
Now I have another XSP problem:
Error: 500
Location: /cocoon/logicsheettest
Internal Servlet Error:
java.lang.IllegalAccessError: try to access method
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(Lorg/apache/cocoon/components/language/markup/AbstractMarkupLanguage$LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/SourceResolver;)V
from class
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter
at
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter.processingInstruction(XSPMarkupLanguage.java:352)
at
org.xml.sax.helpers.XMLFilterImpl.processingInstruction(XMLFilterImpl.java:651)
at
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.processingInstruction(XSPMarkupLanguage.java:222)
at
org.apache.xerces.parsers.SAXParser.processingInstruction(SAXParser.java:1537)
at
org.apache.xerces.validators.common.XMLValidator.callProcessingInstruction(XMLValidator.java:1696)
etc.......
No idea what it is!
Thank you
Sylvain
-----Message d'origine-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Date: mardi, 15. octobre 2002 14:42
�: [EMAIL PROTECTED]
Objet: RE: XSP error
Hi,
with IE 6.0 should work.. no idea
Ruben
|---------+----------------------------->
| | <Sylvain.Thevoz@sw|
| | isscom.com> |
| | |
| | 10/15/2002 02:26 |
| | PM |
| | Please respond to |
| | cocoon-users |
| | |
|---------+----------------------------->
>--------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: RE: XSP error
|
>--------------------------------------------------------------------------------------------------------------|
Thank you, it works if I serialize the output to html.
But why it doesn't work? I use IE 6.0.
Sylvain
-----Message d'origine-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Date: mardi, 15. octobre 2002 14:23
�: [EMAIL PROTECTED]
Objet: Re: XSP error
Hi Sylvain,
it looks that the browser cannot show the XML with that namespace applying
its XSL...
try serializing the output to 'html'
|---------+----------------------------->
| | <Sylvain.Thevoz@sw|
| | isscom.com> |
| | |
| | 10/15/2002 01:32 |
| | PM |
| | Please respond to |
| | cocoon-users |
| | |
|---------+----------------------------->
>
--------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: XSP error
|
>
--------------------------------------------------------------------------------------------------------------|
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>