Anomalie #19209
corriger la validité des dictionnaires Envole par rapport à la DTD Creole
100%
Description
sur la version 2.6.1 de la distribution, la cohérence des dictionnaires par rapport à la DTD de CREOLE est devenue obligatoire.
J'ai détecté des problèmes sur certains dictionnaires Envole en les testant sur Zéphir 2.6.1. Ces incohérences peuvent aussi avoir un impact sur les versions antérieures (à voir au cas par cas).
root@zephir:~# xmllint --noout --dtdvalid /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/*/*.xml /usr/share/zephir/dictionnaires/2.6.1/eole/eole-dispatcher/51_dispatcher.xml:18: element family: validity error : Element family is not declared in family list of possible children Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-dispatcher/51_dispatcher.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-dokuwiki/61_dokuwiki.xml:15: element file: validity error : No declaration for attribute chown of element file /usr/share/zephir/dictionnaires/2.6.1/eole/eole-dokuwiki/61_dokuwiki.xml:15: element file: validity error : No declaration for attribute chmod of element file Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-dokuwiki/61_dokuwiki.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-ethercalc/61_ethercalc.xml:7: element service: validity error : Value "service" for attribute method of service is not among the enumerated set /usr/share/zephir/dictionnaires/2.6.1/eole/eole-ethercalc/61_ethercalc.xml:7: element service: validity error : No declaration for attribute pty of element service Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-ethercalc/61_ethercalc.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherdraw/61_etherdraw.xml:12: element service: validity error : Value "service" for attribute method of service is not among the enumerated set /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherdraw/61_etherdraw.xml:12: element service: validity error : No declaration for attribute pty of element service Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherdraw/61_etherdraw.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherpad/61_etherpad.xml:11: element service: validity error : Value "service" for attribute method of service is not among the enumerated set /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherpad/61_etherpad.xml:11: element service: validity error : No declaration for attribute pty of element service Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-etherpad/61_etherpad.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-moodle-update/61_moodle.xml:39: element variable: validity error : Value "true" for attribute multi of variable is not among the enumerated set Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-moodle-update/61_moodle.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-piwik/51_piwik.xml:25: element variables: validity error : Element variables content does not follow the DTD, expecting (family* , separators*), got (family separators family ) Document /usr/share/zephir/dictionnaires/2.6.1/eole/eole-piwik/51_piwik.xml does not validate against /usr/share/creole/creole.dtd /usr/share/zephir/dictionnaires/2.6.1/eole/eole-profilcache/88_profilcache.xml:14: element variables: validity error : Element variables content does not follow the DTD, expecting (family* , separators*), got (family separators family )
Pour tester la validité d'un dictionnaire particulier, récupérer le fichier data/creole.dtd dans le projet Creole de la bonne version et lancer la commande suivante :
xmllint --dtdvalid <chemin_vers_creole.dtd> <chemin_du_dictionnaire_xml>
quelques infos sur les erreurs remontées :
- pour les services ayant l'attribut method à "service", ce choix n'est plus dispo dans les versions 2.6.X. Il vaut mieux ne pas renseigner (service étant la valeur par défaut sur les version 2.4/2.5)
- chown et chmod sur une balise <file> n'existe pas, il faut utiliser owner et mode
La validation n'a lieu que pour les dictionnaires 2.6.1, mais certaines des erreurs doivent provoquer des dysfonctionnements même sur les versions précédentes
History
#1 Updated by Igor GODI over 6 years ago
- Assigned To set to Igor GODI
#2 Updated by Igor GODI over 6 years ago
- % Done changed from 0 to 100
#3 Updated by Igor GODI over 6 years ago
- Status changed from Nouveau to Résolu
#4 Updated by Arnaud FORNEROT over 6 years ago
- Target version set to Envole 5.5
#5 Updated by Arnaud FORNEROT over 6 years ago
- Status changed from Résolu to Fermé