note 50200 added to function.xsl-xsltprocessor-transform-to-xml

From: Date: Mon, 21 Feb 2005 20:08:24 +0000
Subject: note 50200 added to function.xsl-xsltprocessor-transform-to-xml
Groups: php.notes 
Request: Send a blank email to php-notes+get-85328@lists.php.net to get a copy of this message
I try to use this Method and I had a problem. It's easy to solve it but i don't know if it's normal. I generetale a easy XML: <?xml version="1.0"?> <ADDRESS> <Name>Pol</Name> <SureName>Clark</SureName> </ADDRESS> And another easy XSL: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40"> <xsl:template match="ADDRESS"> <xsl:value-of select="Name"/>-<xsl:value-of select="SureName"/> </xsl:template> </xsl:stylesheet> I try to use that function to generate a string contains: Name-SureName. If i use this one in fact string created is <?xml version="1.0"?>Pol - Clark instead of Pol - Clark. Exist any way to disable <?xml version="1.0"?> output? ---- Manual Page -- http://www.php.net/manual/en/function.xsl-xsltprocessor-transform-to-xml.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50200 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50200&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50200&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50200&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50200&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50200&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50200&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85328) next »