cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject Re: Parsing a Request Stream
Date Thu, 21 Mar 2002 10:20:25 GMT
At 2:22 pm +0100 19/3/02, Michael Raffenberg wrote:
>i like to receive a post input stream with the following sitemap
>     <map:match pattern="request">
>       <map:generate type="stream">
>         <map:parameter name="form-name" value="msg"/>
>       </map:generate>
>       <map:serialize type="xml"/>
>     </map:match>
>This works ok.
>The input will contain some xml-data with a dtd.
>Is it possible to get this input parsed again the dtd?

Not sure, you can validate it against a Schematron though.

Look in <slash-edit/> in CVS:


>How can i track down any errors if the input is not valid?

Valid, or well formed?

There is little you can do to catch mal-formed XML in a form field using
the StreamGenerator, it was designed for inter-application usage, the
assumption was that all XML transferred, would already be well-formed..

>After parsing the input, i like to transform it with some
>xslt-stylesheets, how do i have to configure the sitemap for this?

     <map:match pattern="request">
       <map:generate type="stream">
         <map:parameter name="form-name" value="msg"/>
-->		 <map:transform src="your.xsl"/>
       <map:serialize type="xml"/>

Hope this helps

regards Jeremy

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
   <phone:+44.[0].20.7737.6831>             <>

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message