Loading:


    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.

     



    Napisz Artyku³

    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: 0
    Komentarze użytkowników
      • Tre¶æ komentarza
        Kod do komentarza (opcjonalnie)
        PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
        Autor
        Token
        token

         

         








    funkcje.net
    Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2025 v.1.5 | design: diviXdesign & rainbowcolors