Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> xslt w php5 (libxml2)
knockout
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 18.03.2005

Ostrzeżenie: (0%)
-----


Witam,
mam takie lamerskie pytanie, co trzeba zrobić aby móc używać xslt w php5. Ponoć nie używa się już rozserzenia php_xslt tylko biblioteki libxml2. Jak to zainstalować aby móc używać w php5.

Ten post edytował knockout 22.04.2005, 16:25:25
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bela
post
Post #2


Administrator PHPedia.pl


Grupa: Developerzy
Postów: 1 102
Pomógł: 2
Dołączył: 14.09.2003

Ostrzeżenie: (0%)
-----


Po co sciagasz biblioteke jak ją masz :]
  1. <?php
  2. $xsl = new DomDocument();
  3. $xsl->load(&#092;"plistConvert.xsl\");
  4. $inputdom = new DomDocument();
  5. $inputdom->load(&#092;"iTunes Music Library.xml\");
  6. $proc = new XsltProcessor();
  7. $xsl = $proc->importStylesheet($xsl);
  8. $newdom = $proc->transformToDoc($inputdom);
  9. $sxe = simplexml_import_dom($newdom);
  10. print('<pre>');
  11. print_r($sxe->dict);
  12. print('</pre>');
  13. ?>

Dostosuj sobie ;]
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.12.2025 - 23:22