Projet

Général

Profil

Anomalie #19209

corriger la validité des dictionnaires Envole par rapport à la DTD Creole

Ajouté par Bruno Boiget il y a environ 7 ans. Mis à jour il y a presque 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
17/02/2017
Echéance:
% réalisé:

100%

Distribution:

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

Historique

#1 Mis à jour par Igor GODI il y a presque 7 ans

  • Assigné à mis à Igor GODI

#2 Mis à jour par Igor GODI il y a presque 7 ans

  • % réalisé changé de 0 à 100

#3 Mis à jour par Igor GODI il y a presque 7 ans

  • Statut changé de Nouveau à Résolu

#4 Mis à jour par Arnaud FORNEROT il y a presque 7 ans

  • Version cible mis à Envole 5.5

#5 Mis à jour par Arnaud FORNEROT il y a presque 7 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF