note 40875 rejected from function.xslt-process by nlopess

From: Date: Wed, 17 Mar 2004 19:23:47 +0000
Subject: note 40875 rejected from function.xslt-process by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66983@lists.php.net to get a copy of this message
Note Submitter: herbert.schwarz@biddysoft.com ---- I have a problem with the xslt_process function: $xslproc = xslt_create(); $varxml = $this->stoDecorationRobot->getXmlByName("banner"); $varxsl = implode("", file("incl_PUI/banner.xsl")); $args = array ("/_xml" => $varxml, "/_xsl" => $varxsl); $argxml = "arg:/_xml"; $argxsl = "arg:/_xsl"; // get the result $result = xslt_process($xslproc, $argxml, $argxsl, NULL, $args); An '&' character in the xml-source ("http://banner.1und1.com/xml/banner?size=3&number=4") occures the following message: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /home/info/biddysoft.de/incl_PUI/PUI_Stage.php on line 78 What can I do?

« previous php.notes (#66983) next »