File tree Expand file tree Collapse file tree 9 files changed +89
-49
lines changed Expand file tree Collapse file tree 9 files changed +89
-49
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" domxpath.evaluate" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" domxpath.evaluate" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >DOMXPath::evaluate</refname >
6
6
<refpurpose >
46
46
</variablelist >
47
47
</para >
48
48
</refsect1 >
49
+ <xi : include xpointer =" domxpath.query..errors" />
49
50
<refsect1 role =" returnvalues" >
50
51
&reftitle.returnvalues;
51
52
<para >
Original file line number Diff line number Diff line change 59
59
<methodname >DOMXPath::query</methodname > returns &false; .
60
60
</para >
61
61
</refsect1 >
62
+ <refsect1 role =" errors" xml : id =" domxpath.query..errors" >
63
+ &reftitle.errors;
64
+ <simpara >
65
+ The following errors are possible when using an expression that invokes
66
+ PHP callbacks.
67
+ </simpara >
68
+ <itemizedlist >
69
+ <listitem >
70
+ <simpara >
71
+ Throws an <exceptionname >Error</exceptionname > if
72
+ a PHP callback is invoked but there were no callbacks registered,
73
+ or if the named callback was not registered.
74
+ </simpara >
75
+ </listitem >
76
+ <listitem >
77
+ <simpara >
78
+ Throws a <exceptionname >TypeError</exceptionname > if
79
+ the <literal >php:function</literal > syntax is used and the handler
80
+ name is not a string.
81
+ </simpara >
82
+ </listitem >
83
+ <listitem >
84
+ <simpara >
85
+ Throws an <exceptionname >Error</exceptionname > if
86
+ a non-DOM object was returned from a callback.
87
+ </simpara >
88
+ </listitem >
89
+ </itemizedlist >
90
+ </refsect1 >
62
91
<refsect1 role =" examples" >
63
92
&reftitle.examples;
64
93
<para >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" domxpath.registerphpfunctionns" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" domxpath.registerphpfunctionns" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >DOMXPath::registerPhpFunctionNS</refname >
6
6
<refpurpose >Register a PHP functions as namespaced XPath function</refpurpose >
53
53
</variablelist >
54
54
</refsect1 >
55
55
56
+ <xi : include xpointer =" domxpath.registerphpfunctions..errors" />
57
+
56
58
<refsect1 role =" returnvalues" >
57
59
&reftitle.returnvalues;
58
60
<simpara >
Original file line number Diff line number Diff line change 48
48
</para >
49
49
</refsect1 >
50
50
51
+ <refsect1 role =" errors" xml : id =" domxpath.registerphpfunctions..errors" >
52
+ &reftitle.errors;
53
+ <itemizedlist >
54
+ <listitem >
55
+ <simpara >
56
+ Throws a <exceptionname >ValueError</exceptionname > if
57
+ a callback name is not valid.
58
+ </simpara >
59
+ </listitem >
60
+ &dom.errors.compliant.common;
61
+ <listitem >
62
+ <simpara >
63
+ Throws a <exceptionname >TypeError</exceptionname > if
64
+ a given callback is not callable.
65
+ </simpara >
66
+ </listitem >
67
+ </itemizedlist >
68
+ </refsect1 >
69
+
51
70
<refsect1 role =" changelog" >
52
71
&reftitle.changelog;
53
72
<informaltable >
59
78
</row >
60
79
</thead >
61
80
<tbody >
81
+ <row xml : id =" domxpath.registerphpfunctions..changelog.errors" >
82
+ <entry >8.4.0</entry >
83
+ <entry >
84
+ Invalid callback names now throws a
85
+ <exceptionname >ValueError</exceptionname >.
86
+ Passing a non-callable entry now throws a
87
+ <exceptionname >TypeError</exceptionname >.
88
+ </entry >
89
+ </row >
62
90
<row >
63
91
<entry >8.4.0</entry >
64
92
<entry >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" xsltprocessor.registerphpfunctionns" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" xsltprocessor.registerphpfunctionns" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >XSLTProcessor::registerPHPFunctionNS</refname >
6
6
<refpurpose >Register a PHP function as namespaced XSLT function</refpurpose >
50
50
</variablelist >
51
51
</refsect1 >
52
52
53
+ <xi : include xpointer =" domxpath.registerphpfunctions..errors" />
54
+
53
55
<refsect1 role =" returnvalues" >
54
56
&reftitle.returnvalues;
55
57
<simpara >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" xsltprocessor.registerphpfunctions" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" xsltprocessor.registerphpfunctions" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >XSLTProcessor::registerPHPFunctions</refname >
6
6
<refpurpose >Enables the ability to use PHP functions as XSLT functions</refpurpose >
40
40
</para >
41
41
</refsect1 >
42
42
43
+ <xi : include xpointer =" domxpath.registerphpfunctions..errors" />
44
+
43
45
<refsect1 role =" returnvalues" >
44
46
&reftitle.returnvalues;
45
47
<para >
58
60
</row >
59
61
</thead >
60
62
<tbody >
63
+ <xi : include xpointer =" domxpath.registerphpfunctions..changelog.errors" />
61
64
<row >
62
65
<entry >8.4.0</entry >
63
66
<entry >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" xsltprocessor.transformtodoc" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" xsltprocessor.transformtodoc" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >XSLTProcessor::transformToDoc</refname >
6
6
<refpurpose >Transform to a document</refpurpose >
45
45
</variablelist >
46
46
</para >
47
47
</refsect1 >
48
+
49
+ <xi : include xpointer =" domxpath.query..errors" />
50
+
48
51
<refsect1 role =" returnvalues" >
49
52
&reftitle.returnvalues;
50
53
<para >
51
54
The resulting document or &false; on error.
52
55
</para >
53
56
</refsect1 >
54
57
55
- <refsect1 role =" changelog" >
56
- &reftitle.changelog;
57
- <informaltable >
58
- <tgroup cols =" 2" >
59
- <thead >
60
- <row >
61
- <entry >&Version; </entry >
62
- <entry >&Description; </entry >
63
- </row >
64
- </thead >
65
- <tbody >
66
- <row >
67
- <entry >8.4.0</entry >
68
- <entry >
69
- Added support for <classname >Dom\Document</classname >.
70
- </entry >
71
- </row >
72
- </tbody >
73
- </tgroup >
74
- </informaltable >
75
- </refsect1 >
58
+ <xi : include xpointer =" xsltprocessor.transformtouri..changelog" />
76
59
77
60
<refsect1 role =" examples" >
78
61
&reftitle.examples;
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <refentry xml : id =" xsltprocessor.transformtouri" xmlns =" http://docbook.org/ns/docbook" >
3
+ <refentry xml : id =" xsltprocessor.transformtouri" xmlns =" http://docbook.org/ns/docbook" xmlns : xi = " http://www.w3.org/2001/XInclude " >
4
4
<refnamediv >
5
5
<refname >XSLTProcessor::transformToUri</refname >
6
6
<refpurpose >Transform to URI</refpurpose >
42
42
</para >
43
43
</refsect1 >
44
44
45
+ <xi : include xpointer =" domxpath.query..errors" />
46
+
45
47
<refsect1 role =" returnvalues" >
46
48
&reftitle.returnvalues;
47
49
<para >
48
50
Returns the number of bytes written or &false; if an error occurred.
49
51
</para >
50
52
</refsect1 >
51
53
52
- <refsect1 role =" changelog" >
54
+ <refsect1 role =" changelog" xml : id = " xsltprocessor.transformtouri..changelog " >
53
55
&reftitle.changelog;
54
56
<informaltable >
55
57
<tgroup cols =" 2" >
60
62
</row >
61
63
</thead >
62
64
<tbody >
65
+ <row >
66
+ <entry >8.4.0</entry >
67
+ <entry >
68
+ Now throws an <exceptionname >Error</exceptionname > if the callback
69
+ cannot be invoked, instead of emitting a warning.
70
+ </entry >
71
+ </row >
63
72
<row >
64
73
<entry >8.4.0</entry >
65
74
<entry >
Original file line number Diff line number Diff line change 21
21
<xi : fallback />
22
22
</xi : include >
23
23
</refsect1 >
24
+
25
+ <xi : include xpointer =" domxpath.query..errors" />
26
+
24
27
<refsect1 role =" returnvalues" >
25
28
&reftitle.returnvalues;
26
29
<para >
27
30
The result of the transformation as a string or &false; on error.
28
31
</para >
29
32
</refsect1 >
30
33
31
- <refsect1 role =" changelog" >
32
- &reftitle.changelog;
33
- <informaltable >
34
- <tgroup cols =" 2" >
35
- <thead >
36
- <row >
37
- <entry >&Version; </entry >
38
- <entry >&Description; </entry >
39
- </row >
40
- </thead >
41
- <tbody >
42
- <row >
43
- <entry >8.4.0</entry >
44
- <entry >
45
- Added support for <classname >Dom\Document</classname >.
46
- </entry >
47
- </row >
48
- </tbody >
49
- </tgroup >
50
- </informaltable >
51
- </refsect1 >
34
+ <xi : include xpointer =" xsltprocessor.transformtouri..changelog" />
52
35
53
36
<refsect1 role =" examples" >
54
37
&reftitle.examples;
You can’t perform that action at this time.
0 commit comments