Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 19602 invoked from network); 6 Sep 2005 12:45:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 12:45:24 -0000 Received: (qmail 80492 invoked by uid 500); 6 Sep 2005 12:45:22 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 80429 invoked by uid 500); 6 Sep 2005 12:45:22 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 80416 invoked by uid 99); 6 Sep 2005 12:45:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 05:45:21 -0700 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_BY_IP,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 05:45:34 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ECcnC-00012P-0v for dev@cocoon.apache.org; Tue, 06 Sep 2005 14:43:14 +0200 Received: from 195.226.6.66 ([195.226.6.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Sep 2005 14:43:14 +0200 Received: from andreas by 195.226.6.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Sep 2005 14:43:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Andreas Hartmann Subject: Re: Jing validation component (was: JING Transformer...) Date: Tue, 06 Sep 2005 14:41:08 +0200 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 195.226.6.66 User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Pier Fumagalli wrote: > On 6 Sep 2005, at 10:14, Andreas Hartmann wrote: > >> Pier Fumagalli wrote: >> >> [...] >> >> > It's in Subversion right now... 2.1.x branch, "validation" block. >> >> I tried it, it works nicely - thanks a lot! >> >> Unfortunately we need an isolated valdiation service (not a >> transformer), >> which I created using your code - mostly using copy & paste :( >> >> Would you be interested in decoupling the validation functionality >> (incl. protocol-based entity resolving) from the transformation >> functionality? > > > So, a some sort of validation component that can be looked up using the > ServiceManager? Something along the lines of.... > > public interface Validator() { > > public static final String ROLE = > "org.apache.cocoon.components.validation.Validator"; > > public XMLConsumer getValidator(String schemaURI); What would be the role of the XMLConsumer? The interface I used looked basically like this: public interface Validator { String ROLE = Validator.class.getName(); void validate(String xmlUri, String schemaUri, ErrorHandler handler); } But a SAX stream or something else as input would also be fine. -- Andreas