[jira] Closed: (COCOON3-2) Add an XSchema Validator as PipelineComponent

2008-10-17 Thread Reinhard Poetz (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reinhard Poetz closed COCOON3-2.


Resolution: Fixed

Patch applied. Thanks Simone!

> 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

2008-10-13 Thread Simone Tripodi
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


Re: [jira] Closed: (COCOON3-2) Add an XSchema Validator as PipeLineComponent

2008-10-10 Thread Reinhard Pötz
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]



Re: [jira] Closed: (COCOON3-2) Add an XSchema Validator as PipeLineComponent

2008-10-10 Thread Simone Tripodi
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

Best regards,
Simone

2008/10/9 Reinhard Poetz (JIRA) <[EMAIL PROTECTED]>:
>
> [ 
> https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Reinhard Poetz closed COCOON3-2.
> 
>
>Resolution: Fixed
>
> The SchemaErrorHandler throws a specific unchecked exception 
> (SchemaValidationException) when the XML is invalid now.
>
>> 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: 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.
>
>



-- 
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] Closed: (COCOON3-2) Add an XSchema Validator as PipeLineComponent

2008-10-09 Thread Reinhard Poetz (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reinhard Poetz closed COCOON3-2.


Resolution: Fixed

The SchemaErrorHandler throws a specific unchecked exception 
(SchemaValidationException) when the XML is invalid now. 

> 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: 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.



[jira] Closed: (COCOON3-2) Add an XSchema Validator as PipeLineComponent

2008-10-06 Thread Reinhard Poetz (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON3-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reinhard Poetz closed COCOON3-2.


Resolution: Fixed

I've applied the patch. Thanks Simone.

This patch has reminded me that we have to do something about error handling. 
In the case of invalid XML, a RuntimeException is thrown ATM which isn't really 
helpful. OTOH, checked exceptions all over the place might not be helpful 
either.

> 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: 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.