cvs: peardoc /en/packages/xml xml_transformer.xml
| From: | Sebastian Bergmann | Date: | Tue, 27 Aug 2002 05:36:14 +0000 |
| Subject: | cvs: peardoc /en/packages/xml xml_transformer.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5999@lists.php.net to get a copy of this message | ||
sebastian Tue Aug 27 01:36:14 2002 EDT
Modified files:
/peardoc/en/packages/xml xml_transformer.xml
Log:
Maintain XML_Transformer documentation.
Index: peardoc/en/packages/xml/xml_transformer.xml
diff -u peardoc/en/packages/xml/xml_transformer.xml:1.7
peardoc/en/packages/xml/xml_transformer.xml:1.8
--- peardoc/en/packages/xml/xml_transformer.xml:1.7 Mon May 13 13:45:59 2002
+++ peardoc/en/packages/xml/xml_transformer.xml Tue Aug 27 01:36:14 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="packages.XML.XML_Transformer">
<refnamediv>
<refname><classname>XML_Transformer</classname></refname>
@@ -32,25 +32,30 @@
</funcsynopsis>
<para>
Constructor of the XML_Transformer class. It can be passed an
- associative array that may have <parameter>caseFolding</parameter>,
- <parameter>overloadedElements</parameter>,
- <parameter>overloadedNamespaces</parameter> and
- <parameter>startup</parameter> as its keys.
+ associative array that may have the following keys:
</para>
<para>
- <parameter>caseFolding</parameter> controls the case-folding
- behaviour of the used XML parser.
- </para>
- <para>
- With <parameter>overloadedElements</parameter> and
- <parameter>overloadedNamespaces</parameter> sets of predefined,
- overloaded elements and namespaces can be passed to the Transformer
- object.
- </para>
- <para>
- <parameter>startup</parameter> controls whether (true) or not
- (false) the output buffering, and thus the transformation, should
- be started upon object creation.
+ <itemizedlist>
+ <listitem>
+ <simpara>caseFolding: If TRUE, XML attribute and element names
+ will be case-folded.</simpara>
+ <simpara>caseFoldingTo: May be either CASE_UPPER or CASE_LOWER
+ and sets the target case for the case-folding.</simpara>
+ <simpara>debug: May be either TRUE or FALSE, thus enabling or
+ disabling complete debugging information. May also be an array
+ containing the names of elements to which the generated
+ debugging information shall be limited. The special keywords
+ "&CDATA" and "&RECURSE" may be used to enable debugging
+ information for CDATA and recursion events.</simpara>
+ <simpara>recursiveOperation: If TRUE, the transformation will
+ continue recursively until the XML contains no more overloaded
+ elements. Can be overrided on a per-element basis.</simpara>
+ <simpara>overloadedElements: Associative array with pre-defined
+ set of overloaded elements.</simpara>
+ <simpara>overloadedNamespaces: Associative array with pre-defined
+ set of overloaded elements.</simpara>
+ </listitem>
+ </itemizedlist>
</para>
</refsect1>
@@ -62,6 +67,7 @@
<paramdef>string <parameter>element</parameter></paramdef>
<paramdef>string <parameter>startHandler</parameter></paramdef>
<paramdef>string <parameter>endHandler</parameter></paramdef>
+ <paramdef>boolean <parameter>recursiveOperation</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
@@ -81,6 +87,10 @@
</listitem>
</itemizedlist>
</para>
+ <para>
+ The optional fourth parameter can be used to override the global
+ setting for recursive operation.
+ </para>
</refsect1>
<refsect1>
@@ -194,6 +204,28 @@
</refsect1>
<refsect1>
+ <title>XML_Transformer::setDebug</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>void <function>XML_Transformer::setDebug</function></funcdef>
+ <paramdef>mixed <parameter>debug</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ Enables or disables debugging to error.log.
+ </para>
+ <para>
+ The parameter may be either TRUE or FALSE, thus
+ enabling or disabling complete debugging information.
+ May also be an array containing the names of elements
+ to which the generated debugging information shall be
+ limited. The special keywords "&CDATA" and "&RECURSE"
+ may be used to enable debugging information for CDATA and
+ recursion events.
+ </para>
+ </refsect1>
+
+ <refsect1>
<title>XML_Transformer::setRecursiveOperation</title>
<funcsynopsis>
<funcprototype>
@@ -203,6 +235,18 @@
</funcsynopsis>
<para>
Enables or disables the recursive operation.
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <title>XML_Transformer::stackdump</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string
<function>XML_Transformer::stackdump</function></funcdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ Returns a stack dump as a debugging aid.
</para>
</refsect1>