RE: Problem with Cocoon Streaming of an internal pipeline is not possible with a reader
-Original Message- From: Sandy_Java [mailto:[EMAIL PROTECTED] Sent: donderdag 9 oktober 2008 11:08 To: dev@cocoon.apache.org Subject: Problem with Cocoon Streaming of an internal pipeline is not possible with a reader Hello Friends, I am new to this Forum. I was searching for some help to work with Apache Cocoon frame work. Amazingly, I found this forum. Please find the description below. I have an error working with Cocoon frame work. I am trying to get a .HTM file from the Database and trying to display it on the browser. In my sitemap.xmp, I am using map:read to do achieve this as follows. map:read mime-type=file_type src=blob:/DataSource/Table_Name/Column_name[PK='pk']/ File types '.gif', '.txt' and '.html'are displaying properly. But a '.htm' file is not displayed and shows the following error. org.apache.cocoon.ProcessingException: Streaming of an internal pipeline is not possible with a reader I am totally new to Cocoon framework and also XSLT. Any help would be greatly appreciable. Please help me. Thanks in Advance. Regards, Sandeep. Hi Sandeep, This is more a question for the Cocoon user list. You can't use an internal pipeline with a reader because it doesn't generate a SAX events. You have to use a pipeline that uses a generator (0+ transformers) and a serializer if you want to use it as starting point for a different pipeline. 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-3329 +1 (707) 773-4646
[jira] Updated: (COCOON3-2) Add an XSchema Validator as PipeLineComponent
[ https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi updated COCOON3-2: - Attachment: SchemaProcessorInSiteMap.patch The second uploaded patch contains the fix to use the SchemaProcessorTransformer in the SiteMap. Example included, plugged in the cocoon-samples, main page also updated. Add an XSchema Validator as PipeLineComponent - Key: COCOON3-2 URL: https://issues.apache.org/jira/browse/COCOON3-2 Project: Cocoon 3 Issue Type: Improvement Components: cocoon-pipeline Affects Versions: 3.0.0-alpha-2 Reporter: Simone Tripodi Assignee: Reinhard Poetz Priority: Minor Fix For: 3.0.0-alpha-2 Attachments: SchemaProcessorInSiteMap.patch, XSchemaProcessor.patch XSchema Validation can be performed as an Identity Transformer where the input will be filter by the XSchema validation. An error occurs - and the pipeline will be break - when the input is not valid against the declared XML Schema. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: [jira] Closed: (COCOON3-2) Add an XSchema Validator as PipeLineComponent
Hi Reinhard, Steven, sorry if I'm a little late but I had some work to do. In attach on the COCOON3-2 Jira's issue you can find the patch we need. Just a small note: in way to run the example, Jetty replied on port instead of 8190 as wrote in the README. I hope that's all useful. Best regards!!! Simone 2008/10/10 Reinhard Pötz [EMAIL PROTECTED]: Simone Tripodi wrote: Hi Reinhard, Hi Steven (and nice to meet you) is there a way I can help you to close the issue related to the FIXME in /cocoon/cocoon3/trunk/cocoon-pipeline/src/main/java/org/apache/cocoon/pipeline/component/sax/SchemaProcessorTransformer.java Yes, very appreciated. If you want to use the SchemaProcessorTransformer in a sitemap, you have to provide a default constructor and implement the setConfiguration() method which gives the component access to all sitemap parameters. (e.g. see the FileGenerator). The 'cocoon-sample' module should give you an idea how you can define a pipeline in a sitemap. If you haven't run the 'cocoon-sample' module yet, see the README.txt in the root directory of Cocoon 3. If this doesn't answer all your questions, just let us know. -- Reinhard Pötz Managing Director, {Indoqa} GmbH http://www.indoqa.com/en/people/reinhard.poetz/ Member of the Apache Software Foundation Apache Cocoon Committer, PMC member [EMAIL PROTECTED] -- My LinkedIn profile: http://www.linkedin.com/in/simonetripodi My GoogleCode profile: http://code.google.com/u/simone.tripodi/ My Picasa: http://picasaweb.google.com/simone.tripodi/ My Tube: http://www.youtube.com/user/stripodi My Del.icio.us: http://del.icio.us/simone.tripodi
[jira] Reopened: (COCOON3-2) Add an XSchema Validator as PipeLineComponent
[ https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reinhard Poetz reopened COCOON3-2: -- Thanks for your contribution. I will have a look at it asap. Add an XSchema Validator as PipeLineComponent - Key: COCOON3-2 URL: https://issues.apache.org/jira/browse/COCOON3-2 Project: Cocoon 3 Issue Type: Improvement Components: cocoon-pipeline Affects Versions: 3.0.0-alpha-2 Reporter: Simone Tripodi Assignee: Reinhard Poetz Priority: Minor Fix For: 3.0.0-alpha-2 Attachments: SchemaProcessorInSiteMap.patch, XSchemaProcessor.patch XSchema Validation can be performed as an Identity Transformer where the input will be filter by the XSchema validation. An error occurs - and the pipeline will be break - when the input is not valid against the declared XML Schema. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.