You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tom von Schwerdtner <tv...@etria.org> on 2002/03/13 04:09:04 UTC

questions about a few pipeline options

Looking at the sunSpot demo, I see this pipeline:

<map:pipeline internal-only="true">

I've done some poking around and I cant figure out what the 'internal-only'
option is all about....can someone clue me in (either to what it means or
to the M I am supposed to RTF)?

TIA,
-Tom





---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: questions about a few pipeline options

Posted by Ivan Rubin <ia...@mcsla.com.ar>.
Tom,

You can't access an internal pipeline from the outside. Sometimes you 
need to hide a pipeline that does something for other pipelines, but not 
for the public in general.

If you have

<map:pipeline internal-only="true">
   <map:match pattern="test">
     <!-- do something -->
   </map:match>

   <map:match pattern="test2">
     <!-- do something else -->
   </map:match>

</map:pipeline>

you can use those pipelines in an aggregation for generating some content:

<map:pipeline>
    <map:match pattern="publicResource">
       <map:aggregate>
          <map:part src="cocoon:/test"/>
          <map:part src="cocoon:/test2"/>
       </map:aggregate>
    </map:match>
</map:pipeline>

but http://localhost/cocoon/test or test2 is not a valid match from the 
outside.

Tom von Schwerdtner wrote:

> Looking at the sunSpot demo, I see this pipeline:
> 
> <map:pipeline internal-only="true">
> 
> I've done some poking around and I cant figure out what the 'internal-only'
> option is all about....can someone clue me in (either to what it means or
> to the M I am supposed to RTF)?
> 
> TIA,
> -Tom
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: questions about a few pipeline options

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Tom von Schwerdtner [mailto:tvon@etria.org]
> 
> Looking at the sunSpot demo, I see this pipeline:
> 
> <map:pipeline internal-only="true">
> 
> I've done some poking around and I cant figure out what the
'internal-only'
> option is all about....can someone clue me in (either to what it means
or
> to the M I am supposed to RTF)?

I'm not sure about M, but here are links to archive:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=98948159629871&w=2
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100031377713174&w=2

Vadim 

> TIA,
> -Tom


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: auto-reload question

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Ruud Diterwich [mailto:rditerwich@cedron.com]
> 
> Hi list,
> 
> I'm experiencing some troubles with auto-reloading input files when
> using generated stylesheets. I've defined a pipeline with an XSLT
> transformation step, where the input xsl is generated by yet another
> stylesheet. If I change the input XML file for this latter stylesheet,
> the main transformation is not updated correctly.
> 
> This is my pipeline:
> 
> <map:pipelines>
>     <map:pipeline>
> 	  <map:match pattern="rulesheet">
> 		<map:generate src="rules.xml" type="file"/>
> 		<map:transform src="rulesheet_generator.xsl"
> type="xslt"/>
> 		<map:serialize type="xml"/>
> 	  </map:match>
> 
>       <map:match pattern="fire-event">
>       	<map:generate type="request"/>
>       	<map:transform src="request2event.xsl" type="xslt"/>
>         	<map:transform src="cocoon:/rulesheet" type="xslt"/>
>       </map:match>
>     <map:pipeline>
> <map:pipelines>
> 
> So, if a change the rules.xml file, the output of 'fire-event' is not
> changed accordingly and I have to restart the appserver.
> 
> Does anyone have similar problems and hopefully a solution?

Try latest Cocoon from the CVS or wait till Cocoon 2.0.2 release.

Vadim

> 
> Ruud Diterwich


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


auto-reload question

Posted by Ruud Diterwich <rd...@cedron.com>.
Hi list,

I'm experiencing some troubles with auto-reloading input files when
using generated stylesheets. I've defined a pipeline with an XSLT
transformation step, where the input xsl is generated by yet another
stylesheet. If I change the input XML file for this latter stylesheet,
the main transformation is not updated correctly. 

This is my pipeline:

<map:pipelines>
    <map:pipeline>
	  <map:match pattern="rulesheet">
		<map:generate src="rules.xml" type="file"/>
		<map:transform src="rulesheet_generator.xsl"
type="xslt"/>
		<map:serialize type="xml"/>
	  </map:match>

      <map:match pattern="fire-event">
      	<map:generate type="request"/>
      	<map:transform src="request2event.xsl" type="xslt"/>
        	<map:transform src="cocoon:/rulesheet" type="xslt"/>
      </map:match>
    <map:pipeline>            
<map:pipelines>

So, if a change the rules.xml file, the output of 'fire-event' is not
changed accordingly and I have to restart the appserver.

Does anyone have similar problems and hopefully a solution?

Ruud Diterwich




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>