cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: XML output transformed into XSP.
Date Tue, 18 Jun 2002 01:56:26 GMT
> From: System Administrator [mailto:root@black-dog-consultants.co.uk]
> 
> Hi,
> 
> I am a newcomer to cocoon, using it to implement a commercial
> application.
> 
> I have a problem.
> 
> I have a pre-generated XML file which specifies a database table
> configuration. I am trying to do the following:
> 
> 1 - Transform the xml into xsp.
> 2 - Transform the xsp tags using esql logicsheet.
> 3 - display results from the database call.
> 
> The following sitemap snip is how I was thinking it should work
> but dosen't. Am I completley off the mark here or is this possible?

This is possible and sample is provided. Install cocoon and go to
http://localhost:8080/cocoon/sub/


Happy hacking,
Vadim


> <!-- Internal pipeline used to transform xml to an xsp file -->
>     <map:pipeline internal-only="true">
>      <map:match pattern="config">
>        <map:generate  src="docs/dbConfig.xml"/>
>        <map:transform src= "stylesheets/dbConfig.xsl"/>
>        <map:serialize type="xml"/>
>      </map:match>
>    </map:pipeline>
>    .
>    .
>    .
>    <map:match pattern="test.html">
>      <map:generate  type="serverpages" src="cocoon:/config"/>
>      <map:transform src="stylesheets/apache.xsl"/>
>      <map:serialize/>
>    </map:match>
> 
> The above was attempting to transform the xml using an internal
> pipeline, then use this transformed xml as input to the
> serverpages generator. But it's not working.
> 
> The outpur being sent to the browser:
> 
> <dependency xmlns:xsp="http://apache.org/xsp" xmlns:xsp-
> session="http://apache.org/xsp/session/2.0"
> xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
> xmlns:damDb="http://hostname/damDb/1.0">C:/Program Files/Tomcat
> 4.0.3/webapps/cocoon/WEB-
> INF/classes/dams/logicsheets/damDb.xsl</dependency>
> 
> 
> Any help would be most gratefully received.
> 
> Regards
> Graeme


---------------------------------------------------------------------
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