cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jared Clinton <jared.clin...@nec.com.au>
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=" http://apache.org/xsp <http://apache.org/xsp> "
xmlns:greeting=" http://duke.edu/tutorial/greeting
<http://duke.edu/tutorial/greeting> ">
<page> <!-- ADD THIS -->
  <xsp:logic>
    // this could be arbitrarily complex Java code, JDBC queries, etc.
    String msg = "Hello, myXSP.xsp!";
  </xsp:logic>
 
  <greeting>
    <xsp:expr>msg</xsp:expr>
    <greeting:hello-world/>
  </greeting>
</page>  <!-- ADD THIS -->
</xsp:page>

umm, Maybe it will help.
Jared.
 

-----Original Message-----
From: Frans Thamura [mailto:java@intercitra.com]
Sent: Thursday, 17 April 2003 2:43 AM
To: cocoon-users@xml.apache.org
Subject: Re: [XSP] <?cocoon-process type="xsp"?>


Joerg,

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: http://apache.org/xsp:page <http://apache.org/xsp:page>


More precisely:

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

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"/>
</map:match>


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"/>
</map:match>


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"/>
</map:match>

What has it to do with XSP?

Does this help?

Regards,

Joerg


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



Ikutan dong ke jug-indonesia@yahoogroups.com, biar bisa diskusi Java.

Kita buat Java User Group Indonesia. 

cara subscribe, jug-indonesia-subscribe@yahoogroups.com

Topik Java Open Source .

Frans Thamura
Intercitra Innovation Center
Inspiring the Uninspired
http://www.intercitra.com <http://www.intercitra.com/> 

HP: +62 - 855 - 7888 - 699

Guerilla will help everyone exchange information and develop value to
stakeholder. 


Mime
View raw message