sdx-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [sdx-users] Petit souci et grande question (ou l'inverse)


From: Martin Sevigny
Subject: RE : [sdx-users] Petit souci et grande question (ou l'inverse)
Date: Wed, 19 Mar 2003 05:15:17 +0100

Bonjour,

> 2- Ds l'indexation, Il y a un parsing mais pas de validation 
> contre une DTD. Je n'ai pas touvé comment modifier ce comportement.

Dans le cocoon.xconf livré avec Cocoon, on retrouve ceci:

<xml-parser class="org.apache.avalon.excalibur.xml.JaxpParser"
logger="core.xml-parser">
  <!-- Parser:
    The default parser used in Apache Cocoon is
    org.apache.avalon.excalibur.xml.JaxpParser. Apache Cocoon requires a

    JAXP 1.1 parser.

   ...

    Configuration for the JaxpParser (not the XercesParser!):
    - validate (boolean, default = false): This parameter causes the
parser 
        to be a validating parser.
        XML validation is only being used for the documentation build.
        (If you are going to use it elsewhere, then do so with caution.)
        You really should have validated all of your XML documents
already,
        according to their proper DTD or schema. Do not expect Cocoon to
do it.
  -->
    <parameter name="validate" value="false"/>
   ...
</xml-parser>

A tester en mettant un value="true" au paramètre. Je ne suis pas certain
de bien comprendre leur commentaire sur la validation, toutefois.

Contrairement à ce que j'ai écrit, c'est donc non validant par défaut...

A bientôt,

Martin Sévigny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]