didou Sat Jul 24 13:55:38 2004 EDT
Modified files:
/phpdoc/en/reference/xslt/functions xslt-set-sax-handlers.xml
Log:
fix the OO example to make it do the same thing as the previous one
# copied my personnal work by mistake
http://cvs.php.net/diff.php/phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml
diff -u phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml:1.3
phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml:1.4
--- phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml:1.3 Sat Jul 24
13:11:30 2004
+++ phpdoc/en/reference/xslt/functions/xslt-set-sax-handlers.xml Sat Jul 24
13:55:38 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/xslt.xml, last change in rev 1.29 -->
<refentry id='function.xslt-set-sax-handlers'>
<refnamediv>
@@ -203,21 +203,21 @@
function start_element($parser, $name, $attributes)
{
global $result,$tag;
- $result .= "<".$name.">";
+ $result .= "<". $name . ">";
$tag = $name;
}
function end_element($parser, $name)
{
global $result;
- $result .= "</".$name.">";
+ $result .= "</" . $name . ">";
}
function characters($parser, $data)
{
global $result,$tag;
- if($tag=="auteur") {
- $data=strtoupper($data);
+ if ($tag == "auteur" ) {
+ $data = strtoupper($data);
}
$result .= $data;
}
@@ -261,22 +261,22 @@
// complete reading the document
}
- function start_element($parser, $tagname, $attributes) {
- $this->tag = $tagname;
+ function start_element($parser, $name, $attributes) {
+ $this->tag = $name;
+ $this->buffer .= "<" . $name . ">";
$this->attrs = $attributes;
}
- function end_element($parser, $tagname)
+ function end_element($parser, $name)
{
$this->tag = '';
+ $this->buffer .= "</" . $name . ">";
}
function characters($parser, $data)
{
- // Are we calling a PHP function ?
- if ($this->tag == 'php') {
- $function = $this->attrs['function'];
- $data = $function($data);
+ if ($this->tag == 'auteur') {
+ $data = strtoupper($data);
}
$this->buffer .= $data;
}