xsl-list
[Top] [All Lists]

RE: PHP included as a PI?

2003-02-06 15:37:32
AH!  Yes it does... in other words, you don't want to just load it up,
but actually evaluate it as well.

Well, something to try would be sticking it on your web server and using
the document() function to load it.  At least with our products we use
an HTTP GET to fetch documents with URI's beginning with http: etc.  

I'm thinking something like:

<xsl:apply-templates
select="document('http://myServer/mydocument.php')"/>

HTH!

Dion

-----Original Message-----
From: Devon Y. [mailto:vehementpetal(_at_)hotmail(_dot_)com] 
Sent: Thursday, February 06, 2003 1:01 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] PHP included as a PI?


I'm not clear exactly what you want to do... If your PHP documents are
in fact well-formed XML documents, then you can transform them just
like
any other XML document.


Exactly, but.. the transformation won't execute any of the PHP
functions, 
classes, and variables....unless the XSLT processor (i use Saxon),
somehow 
uses the php.exe to do it before spitting out the result tree. Does that

clear it up better?

Devon

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>