utilisation :
$xslt = new Xslt(["/data/greut/2004/020/29_233000.xml"[, "/xsl/toEntry.xsl"[, array("a"=>3,"b"=>2)[, "sablotron"]]]]);
$xslt->setEngine("sablotron"); $xslt->setXml("/data/greut/2004/020/29_233000.xml"); $xslt->setXsl("/xsl/toEntry.xsl"); $xslt->setParam(array("a"=>3,"b"=>2));
$result = $xslt->transform();
informations (html format) :
echo $xslt->toString();
Definition at line 41 of file xslt.class.php.
Public Member Functions | |
Xslt ($xml="", $xsl="", $param=NULL, $engine="sablotron") | |
Init the system. | |
setEngine ($engine) | |
Change the used engine. | |
getEngine () | |
Return the current engine. | |
transform () | |
Do the transformation. | |
setXml ($xml="") | |
Define the XML file. | |
setXsl ($xsl="") | |
Define the XSL file. | |
setParam ($param=NULL) | |
Define the transformation parameters. | |
toString () | |
Informations about the current state of this object. | |
result () | |
Return the result. | |
Public Attributes | |
$xml | |
XML file. | |
$xsl | |
Stylesheet. | |
$param | |
Parameters. | |
$engine | |
chosen engine | |
$xsltEngines | |
supported engines | |
$result | |
transformation result |
|
Init the system.
Definition at line 66 of file xslt.class.php. References setEngine(), setParam(), setXml(), and setXsl(). |
|
Return the current engine.
Definition at line 99 of file xslt.class.php. |
|
Return the result.
Definition at line 247 of file xslt.class.php. Referenced by transform(). |
|
Change the used engine.
Definition at line 81 of file xslt.class.php. References $engine, and setEngine(). Referenced by setEngine(), and Xslt(). |
|
Define the transformation parameters.
Definition at line 176 of file xslt.class.php. References $param, and setParam(). Referenced by setParam(), and Xslt(). |
|
Define the XML file.
Definition at line 140 of file xslt.class.php. |
|
Define the XSL file.
Definition at line 158 of file xslt.class.php. |
|
Informations about the current state of this object.
Definition at line 193 of file xslt.class.php. |
|
Do the transformation.
Definition at line 109 of file xslt.class.php. |
|
chosen engine
Definition at line 51 of file xslt.class.php. Referenced by setEngine(), and transform(). |
|
Parameters.
Definition at line 48 of file xslt.class.php. Referenced by setParam(). |
|
transformation result
Definition at line 56 of file xslt.class.php. |
|
XML file.
Definition at line 44 of file xslt.class.php. Referenced by setXml(). |
|
Stylesheet.
Definition at line 46 of file xslt.class.php. Referenced by setXsl(). |
|
supported engines
Definition at line 53 of file xslt.class.php. |