note 50200 rejected from function.xsl-xsltprocessor-transform-to-xml by nlopess

From: Date: Mon, 21 Feb 2005 20:16:34 +0000
Subject: note 50200 rejected from function.xsl-xsltprocessor-transform-to-xml by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85332@lists.php.net to get a copy of this message
Note Submitter: roger4a45 at yahoo dot es ---- 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?

« previous php.notes (#85332) next »