Hello Jeremy, Thursday, March 21, 2002, 11:20:25 AM, you wrote:
JQ> At 2:22 pm +0100 19/3/02, Michael Raffenberg wrote: >>Hi, >> >>i like to receive a post input stream with the following sitemap >>definitions: >> <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? JQ> Not sure, you can validate it against a Schematron though. JQ> Look in <slash-edit/> in CVS: JQ> xml-cocoon2/src/scratchpad/webapps/mount/editor/editor.xmap >>How can i track down any errors if the input is not valid? JQ> Valid, or well formed? JQ> There is little you can do to catch mal-formed XML in a form field using JQ> the StreamGenerator, it was designed for inter-application usage, the JQ> 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? JQ> <map:match pattern="request"> JQ> <map:generate type="stream"> JQ> <map:parameter name="form-name" value="msg"/> JQ> </map:generate> -->> <map:transform src="your.xsl"/> JQ> <map:serialize type="xml"/> JQ> </map:match> JQ> Hope this helps JQ> regards Jeremy Sorry for this stupid question again, but i didn't find a solution right now. All i wanna do is to check an xml-file (or input through the StreamGenerator) against its DTD. Is the Parser configuration in the cocoon.xconf the right place to start (<parameter name="validate" value="true"/>)? Thanks in advance -- Michael --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>