A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/1290.html
Document ID: 1290
Branch: main
Language: default
Name: Your first XML pipeline (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 5/4/07 11:44:08 AM
Updated by: Reinhard Pötz
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 2927 bytes (previous version: 2854 bytes)
Content diff:
(30 equal lines skipped)
<p>First, open <tt>src\main\resources\COB-INF\sitemap.xmap</tt> in your
favorite
XML editor. That's your block's base sitemap. There are already some
pipelines
--- there (/sitemap/pipelines) but for this purpose of this tutorial, let's
create
--- your own pipeline.</p>
+++ there (<tt>/sitemap/pipelines</tt>) but for this purpose of this tutorial,
let's
+++ create your own pipeline.</p>
<pre><map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
--- xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
+++ xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
+++ http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
(11 equal lines skipped)
<p>The <tt>map:match </tt>element has an attribute <tt>@pattern</tt>. If the
request
<tt>http://localhost:8888/myBlock1/<strong>myFirstPipeline</strong></tt>
--- comes in, this matcher "matches" and the request processing continues with
the
--- generation of myXmlFile.xml. This file has to be in the same directory as
the
--- sitemap:</p>
+++ comes in, this matcher <em>matches</em> and the request processing continues
+++ with the generation of <tt>myXmlFile.xml</tt>. This file has to be in the
same
+++ directory as the sitemap:</p>
<pre><?xml version="1.0" encoding="UTF-8"?>
<myFirstPipeline>test</myFirstPipeline>
(7 equal lines skipped)
<p>After saving the sitemap and the XML file, you can point you browser to
<tt>http://localhost:8888/myBlock</tt><tt><tt>1</tt>/myFirstPipeline</tt>
and
--- you will see the output of your first own pipeline serialized as XML.</p>
+++ you will see the output of your first own pipeline serialized as XML
+++ (<tt><map:serialize type="xml"/></tt>).</p>
<h1>Adding an XSLT transformation step</h1>
(8 equal lines skipped)