Subject: Re: [xsl] roblems with passing variables from PHP to XSLT From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx> Date: Tue, 6 Jun 2006 22:49:24 +1000 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl">
<xsl:template match="XMLData"> <xsl:apply-templates /> </xsl:template>
$domTranObj = $domXsltObj->process( $domXmlObj );
If you want to pass in a parameter as your headline reads, see last comment on this page ;
Also, to tell the XSLT processor that you've got an incoming parameter, at the top add ;
As to the accuracy of this, I think we need some more info on what you're trying to do. Your XSLT stylesheet is hopelessly static, meaning you're trying to match stuff on data you know about, but from the context of the subject it looks like you want to create a generic stylesheet, which is what I'm explaining.
Alex -- "Ultimately, all things are known because you want to believe you know." - Frank Herbert __ http://shelter.nu/ __________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] roblems with passing variable, tech | Thread | Re: [xsl] roblems with passing vari, David Carlisle |
[xsl] roblems with passing variable, tech | Date | [xsl] XSLT 2.0: Reasons for mode="#, Dimitre Novatchev |
Month |