Fix ATL transformation zoo scripts
diff --git a/atlTransformations/atlTransformations_script_xml.php b/atlTransformations/atlTransformations_script_xml.php
index c229a4b..4def3e5 100644
--- a/atlTransformations/atlTransformations_script_xml.php
+++ b/atlTransformations/atlTransformations_script_xml.php
@@ -9,7 +9,7 @@
#
#****************************************************************************
-require_once($_SERVER['DOCUMENT_ROOT'] . "/gmt/resources/scripts/xml_sax_parsing_extension.php");
+require_once("../script/xml_sax_parsing_extension.php");
function & getAtlTransformationsParsed($file_name) {
$handler = new ATLFileHandler();
diff --git a/script/xml_sax_parsing_extension.php b/script/xml_sax_parsing_extension.php
new file mode 100644
index 0000000..a1833d3
--- /dev/null
+++ b/script/xml_sax_parsing_extension.php
@@ -0,0 +1,42 @@
+<?php
+
+#*****************************************************************************
+#
+# xml_sax_parsing_complement.php
+#
+# Author: Frédéric Jouault
+# Date: 2005-11-14
+#
+#****************************************************************************
+
+require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/xml_sax_parsing.php");
+
+class ComplexPropertyHandler extends SimplePropertyHandler {
+ var $name;
+
+ function ComplexPropertyHandler(& $owner, $property) {
+ parent::SimplePropertyHandler($owner, $property);
+ }
+
+ function & get_next($name, $attributes) {
+ $this->text .= "<" . $name;
+ foreach ($attributes as $attrName => $attrValue) {
+ $this->text .= " " . $attrName . "=\"" . $attrValue . "\"";
+ }
+ $this->text .=">";
+ $this->name = $name;
+ return new ComplexPropertyHandler($this, "text");
+ }
+
+ function set_property_value(& $value) {
+ $property = $this->property;
+ $this->owner-> $property .= $value;
+ }
+
+ function end($name) {
+ $this->text .= "</" . $name . ">";
+ parent::end($name);
+ }
+}
+
+?>
\ No newline at end of file