diff --git a/ecrire/inc/indenter_xml.php b/ecrire/inc/indenter_xml.php index b09e274754ac4ff10b94ba0fa407242dee551a6a..a0cac2b3fabffca2507f19c9d1ed71482ae42417 100644 --- a/ecrire/inc/indenter_xml.php +++ b/ecrire/inc/indenter_xml.php @@ -16,21 +16,27 @@ include_spip('inc/sax'); class IndenteurXML { +// http://doc.spip.org/@debutElement function debutElement($phraseur, $name, $attrs) { xml_debutElement($phraseur, $name, $attrs);} +// http://doc.spip.org/@finElement function finElement($phraseur, $name) { xml_finElement($phraseur, $name);} +// http://doc.spip.org/@textElement function textElement($phraseur, $data) { xml_textElement($phraseur, $data);} +// http://doc.spip.org/@PiElement function PiElement($phraseur, $target, $data) { xml_PiElement($phraseur, $target, $data);} +// http://doc.spip.org/@defautElement function defautElement($phraseur, $data) { xml_defautElement($phraseur, $data);} +// http://doc.spip.org/@phraserTout function phraserTout($phraseur, $data) { xml_parsestring($phraseur, $data); @@ -46,6 +52,7 @@ function phraserTout($phraseur, $data) var $entites = array(); } +// http://doc.spip.org/@inc_indenter_xml_dist function inc_indenter_xml_dist($page, $apply=false) { $sax = charger_fonction('sax', 'inc'); diff --git a/ecrire/inc/sax.php b/ecrire/inc/sax.php index f68a1b648454764849130034751f78fa0d03fbf0..08f74f83127761d7bf85e28180ad4022753bd55c 100644 --- a/ecrire/inc/sax.php +++ b/ecrire/inc/sax.php @@ -15,7 +15,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; include_spip('inc/filtres'); include_spip('inc/charsets'); -// http://doc.spip.org/@debutElement +// http://doc.spip.org/@xml_debutElement function xml_debutElement($parser, $name, $attrs) { global $phraseur_xml; @@ -51,7 +51,7 @@ function xml_debutElement($parser, $name, $attrs) $reperes[$depth] = xml_get_current_line_number($parser); } -// http://doc.spip.org/@finElement +// http://doc.spip.org/@xml_finElement function xml_finElement($parser, $name, $fusion_bal=false) { global $phraseur_xml; @@ -79,7 +79,7 @@ function xml_finElement($parser, $name, $fusion_bal=false) $phraseur_xml->res .= ($ouv ? ('<' . $ouv . ' />') : ("</" . $name . ">")); } -// http://doc.spip.org/@textElement +// http://doc.spip.org/@xml_textElement function xml_textElement($parser, $data) { global $phraseur_xml; @@ -91,7 +91,7 @@ function xml_textElement($parser, $data) : entites_html($data); } -// http://doc.spip.org/@PiElement +// http://doc.spip.org/@xml_PiElement function xml_PiElement($parser, $target, $data) { global $phraseur_xml; @@ -109,7 +109,7 @@ function xml_PiElement($parser, $target, $data) } -// http://doc.spip.org/@defautElement +// http://doc.spip.org/@xml_defautElement function xml_defautElement($parser, $data) { global $phraseur_xml; @@ -153,6 +153,7 @@ function coordonnees_erreur($xml_parser) xml_get_current_column_number($xml_parser); } +// http://doc.spip.org/@inc_sax_dist function inc_sax_dist($page, $apply=false) { global $phraseur_xml; diff --git a/ecrire/inc/valider_xml.php b/ecrire/inc/valider_xml.php index 858bd443de20b41fb4c9cd7905ed1c4dd868606a..5463ee2a576558a57ce4f62f439a3177146d9309 100644 --- a/ecrire/inc/valider_xml.php +++ b/ecrire/inc/valider_xml.php @@ -17,6 +17,7 @@ include_spip('inc/sax'); define('_REGEXP_DOCTYPE', '/^\s*(<[?][^>]*>\s*)?<!DOCTYPE\s+(\w+)\s+(\w+)\s*([^>]*)>/'); +// http://doc.spip.org/@validateur function validateur($data) { global $phraseur_xml; @@ -225,6 +226,7 @@ function validerAttribut($parser, $name, $val, $bal) class ValidateurXML { +// http://doc.spip.org/@debutElement function debutElement($phraseur, $name, $attrs) { @@ -235,6 +237,7 @@ function debutElement($phraseur, $name, $attrs) } } +// http://doc.spip.org/@finElement function finElement($phraseur, $name) { global $phraseur_xml; @@ -243,15 +246,19 @@ function finElement($phraseur, $name) $phraseur_xml->elements[$name][0] == 'EMPTY'); } +// http://doc.spip.org/@textElement function textElement($phraseur, $data) { xml_textElement($phraseur, $data);} +// http://doc.spip.org/@PiElement function PiElement($phraseur, $target, $data) { xml_PiElement($phraseur, $target, $data);} +// http://doc.spip.org/@defautElement function defautElement($phraseur, $data) { xml_defautElement($phraseur, $data);} +// http://doc.spip.org/@phraserTout function phraserTout($phraseur, $data) { validateur($data); @@ -290,6 +297,7 @@ function phraserTout($phraseur, $data) var $err = array(); } +// http://doc.spip.org/@inc_valider_xml_dist function inc_valider_xml_dist($page, $apply=false) { $sax = charger_fonction('sax', 'inc');