From users-return-56014-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Mon Sep 29 22:13:37 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 46839 invoked from network); 29 Sep 2003 22:13:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Sep 2003 22:13:36 -0000 Received: (qmail 8813 invoked by uid 500); 29 Sep 2003 22:13:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 8799 invoked by uid 500); 29 Sep 2003 22:13:12 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 8781 invoked from network); 29 Sep 2003 22:13:12 -0000 Received: from unknown (HELO hotmail.com) (64.4.17.70) by daedalus.apache.org with SMTP; 29 Sep 2003 22:13:12 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 29 Sep 2003 15:13:18 -0700 Received: from 66.58.21.90 by lw11fd.law11.hotmail.msn.com with HTTP; Mon, 29 Sep 2003 22:13:18 GMT X-Originating-IP: [66.58.21.90] X-Originating-Email: [saschwarz@hotmail.com] From: "Steve Schwarz" To: users@cocoon.apache.org Bcc: Subject: Re: Sitemap Component for XML Validation? Date: Mon, 29 Sep 2003 22:13:18 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Sep 2003 22:13:18.0944 (UTC) FILETIME=[E3339E00:01C386D6] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I know this isn't what you asked... In my scenario I only validate uploads of XML docs (very small percentage of site's use). My site's "contract" is that any files existent on the server are valid to the schema. For me it was easiest to create an action that basically invokes Xerces dom.ASBuilder.main against the uploaded file and the XSD schema and succeeds or fails as appropriate. Then the regular sitemap logic can be used to provide feedback to the user. It isn't as clever as hooking right into the stream as you propose but it was expedient for my situation. Maybe this helps if you don't have to validate too many documents and can afford the disk writes/reads. Best regards Steve >From: "Stephanie Zohner" >Reply-To: users@cocoon.apache.org >To: "Cocoon Users" >Subject: Sitemap Component for XML Validation? >Date: Mon, 29 Sep 2003 13:57:52 +0200 > >Hi, > >I would like to validate (with an XML Schema) a SAX Stream in the sitemap >before it is processed in the next sitemap component. >Does anybody know of a component (Transformer) that can validate an XML >Stream against a specified XML Schema? >Or do I have to implement it myself. Has anybody already imlemented a >similar component? Would an implementation with JAXB (Java Architecture for >XML Binding) be a good approach? > > >Thanks, > >Stephanie > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org > _________________________________________________________________ High-speed Internet access as low as $29.95/month (depending on the local service providers in your area). Click here. https://broadband.msn.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org