XSLTProcessor DOMDocument transformToDoc 
XSLTProcessor
DOMDocument transformToDoc (  $doc )
Przekształca źródło do węzła DOMDocument stosowanego w arkuszu podanym przez XSLTProcessor: importStylesheet () method.
Parametry
- doc- Węzeł, który ma być przekształcony.
- 
Zwracane wartości
Wynikające z tego DOMDocument lub FALSE w przypadku błędu
Listing
//Przykład # 1 Transformacja do DOMDocument
<?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
echo trim($proc->transformToDoc($xml)->firstChild->wholeText);
?>
//Powyższy przykład wyświetli:
Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection!
Dodano przez: igor  
Ranga: Administrator serwisu Punktów: 0
Ranga: Administrator serwisu Punktów: 0
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 |
        Laminas: MVC Framework for PHP |
        IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS | 
        Katalog roślin |
        Programming articles: JAVA, PHP, C++, Python, JavaScript |
        Kancelaria Adwokacka Łukasz Huszno
        
    

 
  
				

 
                             
 


 
                        
 
		 
	