cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject pRe: problems with schema validation
Date Mon, 16 Oct 2000 00:16:14 GMT
Fixed. A new feature of schema validation was introduced in Xalan, which was 
rather unwisely IMO turned on by default.


>   Modified:    src/org/apache/cocoon/parser XercesParser.java
>   Log:
>   Turned off Xerces schema checking so that validation does not require a 
>schema
>
>   Revision  Changes    Path
>   1.11      +3 -2      
>xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java
>
>   Index: XercesParser.java
>   ===================================================================
>   RCS file: 
>/home/cvs/xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java,v
>   retrieving revision 1.10
>   retrieving revision 1.11
>   diff -u -r1.10 -r1.11
>   --- XercesParser.java	2000/07/21 23:39:55	1.10
>   +++ XercesParser.java	2000/10/15 22:51:31	1.11
>   @@ -1,4 +1,4 @@
>   -/*-- $Id: XercesParser.java,v 1.10 2000/07/21 23:39:55 stefano Exp $ --
>   +/*-- $Id: XercesParser.java,v 1.11 2000/10/15 22:51:31 greenrd Exp $ --
>
>     
>============================================================================
>                       The Apache Software License, Version 1.1
>   @@ -63,7 +63,7 @@
>     * This class implements an XML parser using the Apache Xerces XML 
>parser.
>     *
>     * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
>   - * @version $Revision: 1.10 $ $Date: 2000/07/21 23:39:55 $
>   + * @version $Revision: 1.11 $ $Date: 2000/10/15 22:51:31 $
>     */
>
>    public class XercesParser extends AbstractParser implements Status {
>   @@ -75,6 +75,7 @@
>            DOMParser parser = new DOMParser();
>            parser.setErrorHandler(this);
>            parser.setFeature("http://xml.org/sax/features/validation", 
>validate);
>   +        
>parser.setFeature("http://apache.org/xml/features/validation/schema", 
>false);
>            parser.setFeature("http://xml.org/sax/features/namespaces", 
>true);
>            
>parser.setFeature("http://apache.org/xml/features/validation/warn-on-duplicate-attdef",

>validate);
>            
>parser.setFeature("http://apache.org/xml/features/validation/warn-on-undeclared-elemdef",

>validate);
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message