mam 2 problemy :
Czy jest mozliwe podmienienie w pliku xml linku href="all.xsl"
oczywiscie za pomoca php
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml-stylesheet type="text/xsl" href="all.xsl"?>
na jakis inny ...chodzi o to zeby do jednego xmla było kilka xsl'ów
to raz a 2
znalazłem w manualu 3 rozne sposoby wyświetlania xmla tyle ze zaden mi nie działa

<?php $xmldata = \"all.xml\"; $xsl = \"all.xsl\"; function xml2html($xmldata, $xsl) { /* $xmldata -> your XML */ /* $xsl -> XSLT file */ $path = 'include'; $xsltproc = xslt_create(); xslt_set_encoding($xsltproc, 'ISO-8859-1'); $html = xslt_process($xsltproc, 'arg:/_xml', \"$path/$xsl\", NULL, $arguments); { } xslt_free($xsltproc); return $html; } ?>
ta funkcja wyplówa nic

<?php $xsl = new DomDocument(); $xsl->load(\"all.xsl\"); $inputdom = new DomDocument(); $inputdom->load(\"all.xml\"); $proc = new XsltProcessor(); $proc->registerPhpFunctions(); $xsl = $proc->importStylesheet($xsl); $newdom = $proc->transformToDoc($inputdom); $sxe = simplexml_import_dom($newdom); ?>
a ta
Fatal error: Cannot instantiate non-existent class: domdocument in c:\www\[korporacje]\stare xml\pro2.php on line 49
i znalazłem jeszcze cos takiego
<?php $xslt = new xsltTransform(\"all.xsl\", \"all.xml\"); ?>
Ale tez nic

Ma ktos jakies pomysły

