cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jared Clinton <>
Subject RE: [XSP] <?cocoon-process type="xsp"?>
Date Thu, 17 Apr 2003 04:49:22 GMT
This is a guess, try in your .xsp file the following
<?xml version="1.0"?>
<?xml-logicsheet href="/logicsheet.greeting.xsl"?>
<xsp:page xmlns:xsp=" <> "
<> ">
<page> <!-- ADD THIS -->
    // this could be arbitrarily complex Java code, JDBC queries, etc.
    String msg = "Hello, myXSP.xsp!";
</page>  <!-- ADD THIS -->

umm, Maybe it will help.

-----Original Message-----
From: Frans Thamura []
Sent: Thursday, 17 April 2003 2:43 AM
Subject: Re: [XSP] <?cocoon-process type="xsp"?>


Again, i understand the pipeline tag below, mean the myxsp.xsp +
xsp2mainxsp.xsl -> mainxsp + xsp2html.xsl -> main.html right.

but got error

The org.apache.cocoon.www.file_.C_.tomcat4_1.webapps.cocoon.sitemap_xmap
notifies that org.apache.cocoon.ProcessingException says:

This page is not valid page of this markup langugage. Root element is:
:greeting, must be: <>

More precisely:

org.apache.cocoon.ProcessingException: This page is not valid page of this
markup langugage. Root element is: :greeting, must be: <> :
org.xml.sax.SAXException: This page is not valid page of this markup
langugage. Root element is: :greeting, must be:

What is the problem.

At 07:55 PM 4/14/2003 +0200, you wrote:

Hello Frans,

now I can't follow and am confused ;-)

<map:match pattern="main.html">
  <map:generate type="serverpages" src="cocoon:/mainxsp"/>
  <map:transform src="xsp2html.xsl"/>
  <map:serialize type="html"/>

This is the pipeline matching on URL pattern which you type in the browser,
the request.

<map:match pattern="mainxsp">
  <map:generate type="serverpages" src="myxsp.xsp"/>
  <map:transform src="xsp2mainxsp.xsl"/>
  <map:serialize type="xml"/>

And this is the pipeline for the internal sub request from the above
pipeline using pseudo protocol cocoon:/.

am i have to join both of it.


usually in our case, the descriptor.xml (standard xml), will be transformed
to another xml, based on descriptor.xsp.xsl (XSL with XML). How to match it?

<map:match pattern="descriptor">
  <map:generate src="descriptor.xml"/>
  <map:transform src="descriptor.xsp.xsl"/>
  <map:serialize type="xml"/>

What has it to do with XSP?

Does this help?



To unsubscribe, e-mail:
For additional commands, e-mail:

Ikutan dong ke, biar bisa diskusi Java.

Kita buat Java User Group Indonesia. 

cara subscribe,

Topik Java Open Source .

Frans Thamura
Intercitra Innovation Center
Inspiring the Uninspired <> 

HP: +62 - 855 - 7888 - 699

Guerilla will help everyone exchange information and develop value to

View raw message