problem of including doctypes to another pages

qMax <[email protected]> Thu, 2 Feb 2006 18:36:29 +0600
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Hi.
I'm again about custom pipelines and two-stages processing, which was
discussed before.

Here is my pipeline, selected through pipeline parameter:
<map:when test="xmldoc">
  <map:include label="bxcmsGenerator"/>
  <!-- 1: at this point there's clean resource content (a arbitrary xml)-->
  <map:transform type="xslt" src="{stylesheet}"/>
  <!-- 2: here is a xhtml presentation of resource -->
  <map:include label="standardOutput"/>
  <!-- 3: here goes formatted and styled page html -->
</map:when>

Now i'm going to use one of advantages of separating stages:
In a static document i want to include a plugin output for another page.
That is - not file source (random xml), neither (of cause) resulting page html,

/* When I use <xi:include href="portlet://whatever.html"/>
a plugin node contains resource content (a file content + all
xincludes), which is not what i want. */

It seems like i have to split this pipeline at the desired point (2).

Being cocoon/lenya-minded, I suppose there should be two pipelines:
1. to generate resource content (using plugins and all that stuff).
2. to format resource content into page (html or pdf) using styles and all stuff.
The second pipeline should reference first.

This could look like:

<map:match type="uri" pattern="*.html">
  <map:generate src="$content-internal-reference"/>
  <!-- {xslt}-transform and standardOutput stuff -->
</map:match>
<map:match type="uri" pattern="*.pdf">
  <map:generate src="$content-internal-reference"/>
  <!-- {xslt}-transform and fo2pdf stuff-->
</map:match>

<map:match type="?" match="$content-internal-reference">
 <map:include label="bxcmsGenerator"/>
 <map:select type='any' var='{pipelineName}'>
  <!-- some stuff as currently in main pipeline w/out formatting -->
 </map:select>
</map:match>

The question is how to reference one pipeline in another ?
(in cocoon there's copoon:// scheme for this)
And how to reference this pipeline from portlet for xincluding ?

-- 
 qMax

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms