Re: XSLTProcessor help

From: Date: Mon, 16 Feb 2009 11:41:46 +0000
Subject: Re: XSLTProcessor help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-288314@lists.php.net to get a copy of this message
'Twas brillig, and Tom Sparks at 16/02/09 10:49 did gyre and gimble:
help, when I include <xsl:apply-templates/> the XSLTProcessor only strips the XML tags and outputs the text see result
--------------cut here vehicle.xsl--------- <?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head>
XSL needs to know that you are outputting XML-derived data... eg. try putting this before your <xsl:template....>: <xsl:output method="html" indent="no" encoding="UTF-8" omit-xml-declaration="yes"/> Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]

« previous php.general (#288314) next »