The postprocessing converts the XML from the editor into the XML
structure for the repository. The pipeline URI of the postprocessing is
used as XSLT transformation of the document. So if your pipeline doesn't
output some XSLT, your documents will probably not be saved.

The postprocessXML pipeline is:
     <map:match pattern="postprocessXML">
       <map:generate src="jx/xml.jx" type="jx" /> <!-- the XML from the
editor -->
       <map:select type="simple">
         <map:parameter name="value"
value="{model://[EMAIL PROTECTED]'{flow-attr:doctype}']/postprocessing}"/>
         <map:when test=""><!-- no postprocessing, do nothing -->
         </map:when>
         <map:otherwise><!-- use the uri from the postprocessing to
transform the XML -->
           <map:transform
src="{model://[EMAIL PROTECTED]'{flow-attr:doctype}']/postprocessing}"/>

         </map:otherwise>
       </map:select>
       <map:serialize type="xml" />
     </map:match>

Jasha Joachimsthal 
 
[EMAIL PROTECTED] - [EMAIL PROTECTED]
 
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-5100 +1 (707) 773-4646



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steven Grijzenhout
> Sent: dinsdag 18 november 2008 10:57
> To: Hippo CMS development public mailinglist
> Subject: RE: [HippoCMS-dev] trigger external event upon 
> save/publish/delete
> 
> Hi Jun,
> 
> In your types.xml you can point the postprocessing to a 
> cocoon pipeline.
> For example:
> 
> <postprocessing>cocoon://extensions/project-specific/pipeline.
> xsl</postp
> rocessing>
> 
> Of course, in that pipeline you can do what you want, doing a 
> request to an url for example:
> 
> <map:match pattern="pipeline.xsl">
> <map:generate src="http://myurl.com"; />
> <map:serialize type="xml"/>
> </map:match
> 
> Hope this helps.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: dinsdag 18 november 2008 1:40
> To: [email protected]
> Subject: [HippoCMS-dev] trigger external event upon 
> save/publish/delete
> 
> Hi guys,
> 
> I would like to trigger some external event upon Hippo save/publish.
> What would be the best approach?
> 
>  
> 
> I looked into postprocessing for the type templates, but they 
> are just xslt transformations.  After I read through the 
> recent JMS Queue for Hippo thread, I am planning to have a 
> client listening to the Hippo JMS topic.  Even though, I 
> would still like to find out if there are other ways for me 
> to trigger external events, I would like to do something as 
> simple as poking a url.
> 
>  
> 
> Suggestions? Ideas?
> 
>  
> 
> Thanks a lot!
> 
> Jun 
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to