From 73c17d71fa39b454672f5a49a44e65e3e138a1de Mon Sep 17 00:00:00 2001
From: Christian Lefebvre <christian_lefebvre@laposte.net>
Date: Wed, 20 Dec 2006 22:42:42 +0000
Subject: [PATCH] autodoc

---
 ecrire/inc/indenter_xml.php |  7 +++++++
 ecrire/inc/sax.php          | 11 ++++++-----
 ecrire/inc/valider_xml.php  |  8 ++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/ecrire/inc/indenter_xml.php b/ecrire/inc/indenter_xml.php
index b09e274754..a0cac2b3fa 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 f68a1b6484..08f74f8312 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 858bd443de..5463ee2a57 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');
-- 
GitLab