XSLTProcessor int transformToURI
XSLTProcessor
int transformToURI ( $doc , string $uri )
PrzeksztaÅ‚ca źródÅ‚o wÄ™zÅ‚a do zastosowania arkusza stylów URI podanego przez XSLTProcessor: importStylesheet () method.
Parametry
- doc- Przekształcony dokument.
-
- uri
-
Zwracane wartości
Zwraca liczbÄ™ bajtów lub FALSE, jeÅ›li wystÄ…piÅ‚ błąd.
Listing
//Przykład # 1 Transformacja do pliku HTML
<?php
// Load the XML source
$xml = new DOMDocument;
$xml->load('collection.xml');
$xsl = new DOMDocument;
$xsl->load('collection.xsl');
// Configure the transformer
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
$proc->transformToURI($xml, 'file:///tmp/out.html');
?>
Dodano przez: igor
Ranga: Administrator serwisu Punktów: 28716
Ranga: Administrator serwisu Punktów: 28716
Komentarze użytkowników
:: Losowe artykuły

:: Wymiana linków

Modowe inspiracje |
Android Gry i Aplikacje |
ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
Logo dla firmy |
Change Tires - Car Weather Forecast Reminder |
Zend Framework 3. Developer's Guide |
IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS |
Katalog roślin |
Programming articles of: JAVA, PHP, C++, Pyth, JavaScript and so on..