PHP XSLTProcessor strips style attributes and tags The Next CEO of Stack OverflowHow can I prevent SQL injection in PHP?PHP: Delete an element from an arrayConvert HTML + CSS to PDF with PHP?startsWith() and endsWith() functions in PHPHow do I get PHP errors to display?How to style a <select> dropdown with only CSS?How Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Is fine stranded wire ok for main supply line?

"Eavesdropping" vs "Listen in on"

Towers in the ocean; How deep can they be built?

Is it correct to say moon starry nights?

Why am I getting "Static method cannot be referenced from a non static context: String String.valueOf(Object)"?

Won the lottery - how do I keep the money?

Why is information "lost" when it got into a black hole?

How to Implement Deterministic Encryption Safely in .NET

From jafe to El-Guest

What happened in Rome, when the western empire "fell"?

The Ultimate Number Sequence Puzzle

Can this note be analyzed as a non-chord tone?

how one can write a nice vector parser, something that does pgfvecparseA=B-C; D=E x F;

Airplane gently rocking its wings during whole flight

Is French Guiana a (hard) EU border?

Players Circumventing the limitations of Wish

Yu-Gi-Oh cards in Python 3

Is there a reasonable and studied concept of reduction between regular languages?

What are the unusually-enlarged wing sections on this P-38 Lightning?

How to use ReplaceAll on an expression that contains a rule

Audio Conversion With ADS1243

In the "Harry Potter and the Order of the Phoenix" video game, what potion is used to sabotage Umbridge's speakers?

How do I fit a non linear curve?

What steps are necessary to read a Modern SSD in Medieval Europe?



PHP XSLTProcessor strips style attributes and tags



The Next CEO of Stack OverflowHow can I prevent SQL injection in PHP?PHP: Delete an element from an arrayConvert HTML + CSS to PDF with PHP?startsWith() and endsWith() functions in PHPHow do I get PHP errors to display?How to style a <select> dropdown with only CSS?How Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?










0















I have this XSLT



<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html"/>
<xsl:template match="/">
<img src='http://www.acentroservices.it/wp-content/uploads/2018/02/document.jpg' style="border: 1px solid black"/>
<style>
img
width: 100%

</style>
<xsl:if test="count(list/*) &gt; 0">
<h2>Ci sono <xsl:value-of select="count(list/element)" /> elementi!</h2>
</xsl:if>
<xsl:if test="count(list/*) = 0">
<h2>Niente!</h2>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


That I use to transform this XML



<list><element><id>2</id><uuid>96506f09-eb04-46a2-af86-42fe9c6767ce</uuid><langcode>it</langcode><type>stu_pratica</type><user_id>1</user_id><name>a</name><status>1</status><created>1552053309</created><changed>1552053331</changed><unique_key>a</unique_key><users>admin</users><xml_content></xml_content><default_langcode>1</default_langcode><field_stu_pratica_classe_proc></field_stu_pratica_classe_proc><field_stu_pratica_data_atto></field_stu_pratica_data_atto><field_stu_pratica_data_fine></field_stu_pratica_data_fine><field_stu_pratica_data_inizio></field_stu_pratica_data_inizio><field_stu_pratica_d_protocollo></field_stu_pratica_d_protocollo><field_stu_pratica_ente></field_stu_pratica_ente><field_stu_pratica_esito></field_stu_pratica_esito><field_stu_pratica_indirizzo></field_stu_pratica_indirizzo><field_stu_pratica_lat></field_stu_pratica_lat><field_stu_pratica_lon></field_stu_pratica_lon><field_stu_pratica_nome_proc></field_stu_pratica_nome_proc><field_stu_pratica_num_atto></field_stu_pratica_num_atto><field_stu_pratica_n_protocollo></field_stu_pratica_n_protocollo><field_stu_pratica_primo_int></field_stu_pratica_primo_int><field_stu_pratica_resp_unico></field_stu_pratica_resp_unico><field_stu_pratica_stato></field_stu_pratica_stato><field_stu_pratica_wkid></field_stu_pratica_wkid><field_stu_pratica_x></field_stu_pratica_x><field_stu_pratica_y></field_stu_pratica_y></element></list>


But, in any way I try to execute the transformation:
- style attribute is stripped from every possible tag
- style tag is removed, but it's content is not



This happens only in PHP XSLTProcessor, any online tool I used kept the CSS instructions.



How do I keep CSS instructions in the output?
Why does this happen only in PHP XSLTProcessor and not in the online tools?



Thanks everybody for the help.



EDIT:



That's the piece of PHP code I'm using to operate the transformation:



 $output = new DOMDocument();
$output->loadXML(utf8_encode($body)); // For the XML

$xslt = new XSLTProcessor();
$xsl = new DOMDocument(); // For the XSLT Template

$xsl->load($xslt_path, LIBXML_NOCDATA);
$xsl->formatOutput = TRUE;
$xslt->importStylesheet($xsl);
// Setting some parameters, shouldn't have to do with the css problems i think...
$xslt->setParameter('', 'base_url', $base_url);
$auth_url = Url::fromRoute('stu_botfo.view_authenticated_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_authenticated_element_link', $auth_url->toString() . '/');
$anon_url = Url::fromRoute('stu_botfo.view_anonymous_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_anonymous_element_link', $anon_url->toString() . '/');
$xslt->setParameter('', 'map_url', $map_url);
return $xslt->transformToXML($output);









share|improve this question



















  • 2





    Where is your PHP code?

    – miken32
    Mar 8 at 18:07











  • I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

    – Andrea Cividini
    Mar 11 at 8:55















0















I have this XSLT



<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html"/>
<xsl:template match="/">
<img src='http://www.acentroservices.it/wp-content/uploads/2018/02/document.jpg' style="border: 1px solid black"/>
<style>
img
width: 100%

</style>
<xsl:if test="count(list/*) &gt; 0">
<h2>Ci sono <xsl:value-of select="count(list/element)" /> elementi!</h2>
</xsl:if>
<xsl:if test="count(list/*) = 0">
<h2>Niente!</h2>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


That I use to transform this XML



<list><element><id>2</id><uuid>96506f09-eb04-46a2-af86-42fe9c6767ce</uuid><langcode>it</langcode><type>stu_pratica</type><user_id>1</user_id><name>a</name><status>1</status><created>1552053309</created><changed>1552053331</changed><unique_key>a</unique_key><users>admin</users><xml_content></xml_content><default_langcode>1</default_langcode><field_stu_pratica_classe_proc></field_stu_pratica_classe_proc><field_stu_pratica_data_atto></field_stu_pratica_data_atto><field_stu_pratica_data_fine></field_stu_pratica_data_fine><field_stu_pratica_data_inizio></field_stu_pratica_data_inizio><field_stu_pratica_d_protocollo></field_stu_pratica_d_protocollo><field_stu_pratica_ente></field_stu_pratica_ente><field_stu_pratica_esito></field_stu_pratica_esito><field_stu_pratica_indirizzo></field_stu_pratica_indirizzo><field_stu_pratica_lat></field_stu_pratica_lat><field_stu_pratica_lon></field_stu_pratica_lon><field_stu_pratica_nome_proc></field_stu_pratica_nome_proc><field_stu_pratica_num_atto></field_stu_pratica_num_atto><field_stu_pratica_n_protocollo></field_stu_pratica_n_protocollo><field_stu_pratica_primo_int></field_stu_pratica_primo_int><field_stu_pratica_resp_unico></field_stu_pratica_resp_unico><field_stu_pratica_stato></field_stu_pratica_stato><field_stu_pratica_wkid></field_stu_pratica_wkid><field_stu_pratica_x></field_stu_pratica_x><field_stu_pratica_y></field_stu_pratica_y></element></list>


But, in any way I try to execute the transformation:
- style attribute is stripped from every possible tag
- style tag is removed, but it's content is not



This happens only in PHP XSLTProcessor, any online tool I used kept the CSS instructions.



How do I keep CSS instructions in the output?
Why does this happen only in PHP XSLTProcessor and not in the online tools?



Thanks everybody for the help.



EDIT:



That's the piece of PHP code I'm using to operate the transformation:



 $output = new DOMDocument();
$output->loadXML(utf8_encode($body)); // For the XML

$xslt = new XSLTProcessor();
$xsl = new DOMDocument(); // For the XSLT Template

$xsl->load($xslt_path, LIBXML_NOCDATA);
$xsl->formatOutput = TRUE;
$xslt->importStylesheet($xsl);
// Setting some parameters, shouldn't have to do with the css problems i think...
$xslt->setParameter('', 'base_url', $base_url);
$auth_url = Url::fromRoute('stu_botfo.view_authenticated_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_authenticated_element_link', $auth_url->toString() . '/');
$anon_url = Url::fromRoute('stu_botfo.view_anonymous_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_anonymous_element_link', $anon_url->toString() . '/');
$xslt->setParameter('', 'map_url', $map_url);
return $xslt->transformToXML($output);









share|improve this question



















  • 2





    Where is your PHP code?

    – miken32
    Mar 8 at 18:07











  • I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

    – Andrea Cividini
    Mar 11 at 8:55













0












0








0








I have this XSLT



<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html"/>
<xsl:template match="/">
<img src='http://www.acentroservices.it/wp-content/uploads/2018/02/document.jpg' style="border: 1px solid black"/>
<style>
img
width: 100%

</style>
<xsl:if test="count(list/*) &gt; 0">
<h2>Ci sono <xsl:value-of select="count(list/element)" /> elementi!</h2>
</xsl:if>
<xsl:if test="count(list/*) = 0">
<h2>Niente!</h2>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


That I use to transform this XML



<list><element><id>2</id><uuid>96506f09-eb04-46a2-af86-42fe9c6767ce</uuid><langcode>it</langcode><type>stu_pratica</type><user_id>1</user_id><name>a</name><status>1</status><created>1552053309</created><changed>1552053331</changed><unique_key>a</unique_key><users>admin</users><xml_content></xml_content><default_langcode>1</default_langcode><field_stu_pratica_classe_proc></field_stu_pratica_classe_proc><field_stu_pratica_data_atto></field_stu_pratica_data_atto><field_stu_pratica_data_fine></field_stu_pratica_data_fine><field_stu_pratica_data_inizio></field_stu_pratica_data_inizio><field_stu_pratica_d_protocollo></field_stu_pratica_d_protocollo><field_stu_pratica_ente></field_stu_pratica_ente><field_stu_pratica_esito></field_stu_pratica_esito><field_stu_pratica_indirizzo></field_stu_pratica_indirizzo><field_stu_pratica_lat></field_stu_pratica_lat><field_stu_pratica_lon></field_stu_pratica_lon><field_stu_pratica_nome_proc></field_stu_pratica_nome_proc><field_stu_pratica_num_atto></field_stu_pratica_num_atto><field_stu_pratica_n_protocollo></field_stu_pratica_n_protocollo><field_stu_pratica_primo_int></field_stu_pratica_primo_int><field_stu_pratica_resp_unico></field_stu_pratica_resp_unico><field_stu_pratica_stato></field_stu_pratica_stato><field_stu_pratica_wkid></field_stu_pratica_wkid><field_stu_pratica_x></field_stu_pratica_x><field_stu_pratica_y></field_stu_pratica_y></element></list>


But, in any way I try to execute the transformation:
- style attribute is stripped from every possible tag
- style tag is removed, but it's content is not



This happens only in PHP XSLTProcessor, any online tool I used kept the CSS instructions.



How do I keep CSS instructions in the output?
Why does this happen only in PHP XSLTProcessor and not in the online tools?



Thanks everybody for the help.



EDIT:



That's the piece of PHP code I'm using to operate the transformation:



 $output = new DOMDocument();
$output->loadXML(utf8_encode($body)); // For the XML

$xslt = new XSLTProcessor();
$xsl = new DOMDocument(); // For the XSLT Template

$xsl->load($xslt_path, LIBXML_NOCDATA);
$xsl->formatOutput = TRUE;
$xslt->importStylesheet($xsl);
// Setting some parameters, shouldn't have to do with the css problems i think...
$xslt->setParameter('', 'base_url', $base_url);
$auth_url = Url::fromRoute('stu_botfo.view_authenticated_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_authenticated_element_link', $auth_url->toString() . '/');
$anon_url = Url::fromRoute('stu_botfo.view_anonymous_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_anonymous_element_link', $anon_url->toString() . '/');
$xslt->setParameter('', 'map_url', $map_url);
return $xslt->transformToXML($output);









share|improve this question
















I have this XSLT



<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html"/>
<xsl:template match="/">
<img src='http://www.acentroservices.it/wp-content/uploads/2018/02/document.jpg' style="border: 1px solid black"/>
<style>
img
width: 100%

</style>
<xsl:if test="count(list/*) &gt; 0">
<h2>Ci sono <xsl:value-of select="count(list/element)" /> elementi!</h2>
</xsl:if>
<xsl:if test="count(list/*) = 0">
<h2>Niente!</h2>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


That I use to transform this XML



<list><element><id>2</id><uuid>96506f09-eb04-46a2-af86-42fe9c6767ce</uuid><langcode>it</langcode><type>stu_pratica</type><user_id>1</user_id><name>a</name><status>1</status><created>1552053309</created><changed>1552053331</changed><unique_key>a</unique_key><users>admin</users><xml_content></xml_content><default_langcode>1</default_langcode><field_stu_pratica_classe_proc></field_stu_pratica_classe_proc><field_stu_pratica_data_atto></field_stu_pratica_data_atto><field_stu_pratica_data_fine></field_stu_pratica_data_fine><field_stu_pratica_data_inizio></field_stu_pratica_data_inizio><field_stu_pratica_d_protocollo></field_stu_pratica_d_protocollo><field_stu_pratica_ente></field_stu_pratica_ente><field_stu_pratica_esito></field_stu_pratica_esito><field_stu_pratica_indirizzo></field_stu_pratica_indirizzo><field_stu_pratica_lat></field_stu_pratica_lat><field_stu_pratica_lon></field_stu_pratica_lon><field_stu_pratica_nome_proc></field_stu_pratica_nome_proc><field_stu_pratica_num_atto></field_stu_pratica_num_atto><field_stu_pratica_n_protocollo></field_stu_pratica_n_protocollo><field_stu_pratica_primo_int></field_stu_pratica_primo_int><field_stu_pratica_resp_unico></field_stu_pratica_resp_unico><field_stu_pratica_stato></field_stu_pratica_stato><field_stu_pratica_wkid></field_stu_pratica_wkid><field_stu_pratica_x></field_stu_pratica_x><field_stu_pratica_y></field_stu_pratica_y></element></list>


But, in any way I try to execute the transformation:
- style attribute is stripped from every possible tag
- style tag is removed, but it's content is not



This happens only in PHP XSLTProcessor, any online tool I used kept the CSS instructions.



How do I keep CSS instructions in the output?
Why does this happen only in PHP XSLTProcessor and not in the online tools?



Thanks everybody for the help.



EDIT:



That's the piece of PHP code I'm using to operate the transformation:



 $output = new DOMDocument();
$output->loadXML(utf8_encode($body)); // For the XML

$xslt = new XSLTProcessor();
$xsl = new DOMDocument(); // For the XSLT Template

$xsl->load($xslt_path, LIBXML_NOCDATA);
$xsl->formatOutput = TRUE;
$xslt->importStylesheet($xsl);
// Setting some parameters, shouldn't have to do with the css problems i think...
$xslt->setParameter('', 'base_url', $base_url);
$auth_url = Url::fromRoute('stu_botfo.view_authenticated_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_authenticated_element_link', $auth_url->toString() . '/');
$anon_url = Url::fromRoute('stu_botfo.view_anonymous_element', ['bundle' => $bundle, 'id' => ''], ['absolute' => TRUE]);
$xslt->setParameter('', 'view_anonymous_element_link', $anon_url->toString() . '/');
$xslt->setParameter('', 'map_url', $map_url);
return $xslt->transformToXML($output);






php css xslt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 11 at 8:53







Andrea Cividini

















asked Mar 8 at 17:34









Andrea CividiniAndrea Cividini

11




11







  • 2





    Where is your PHP code?

    – miken32
    Mar 8 at 18:07











  • I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

    – Andrea Cividini
    Mar 11 at 8:55












  • 2





    Where is your PHP code?

    – miken32
    Mar 8 at 18:07











  • I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

    – Andrea Cividini
    Mar 11 at 8:55







2




2





Where is your PHP code?

– miken32
Mar 8 at 18:07





Where is your PHP code?

– miken32
Mar 8 at 18:07













I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

– Andrea Cividini
Mar 11 at 8:55





I'm very sorry about forgiving the PHP code, I edited the question with the script, thanks a lot again

– Andrea Cividini
Mar 11 at 8:55












2 Answers
2






active

oldest

votes


















0














Solved, thanks a lot everybody.
Turns out it was not XSLTProcessor fault, but some HTML filter I was not aware of that took place later in the rendering process, I'm really sorry for not thinking about it before.






share|improve this answer






























    -1














    In most cases if you expect HTML as output you better use transformToXML() directly in the PHP XSLTProcessor. You gain better control over xsl:output attributes.



    I am not sure if you are directly calling transformToDoc() in the PHP code.






    share|improve this answer























    • Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

      – Andrea Cividini
      Mar 11 at 8:57











    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068253%2fphp-xsltprocessor-strips-style-attributes-and-tags%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Solved, thanks a lot everybody.
    Turns out it was not XSLTProcessor fault, but some HTML filter I was not aware of that took place later in the rendering process, I'm really sorry for not thinking about it before.






    share|improve this answer



























      0














      Solved, thanks a lot everybody.
      Turns out it was not XSLTProcessor fault, but some HTML filter I was not aware of that took place later in the rendering process, I'm really sorry for not thinking about it before.






      share|improve this answer

























        0












        0








        0







        Solved, thanks a lot everybody.
        Turns out it was not XSLTProcessor fault, but some HTML filter I was not aware of that took place later in the rendering process, I'm really sorry for not thinking about it before.






        share|improve this answer













        Solved, thanks a lot everybody.
        Turns out it was not XSLTProcessor fault, but some HTML filter I was not aware of that took place later in the rendering process, I'm really sorry for not thinking about it before.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 11 at 9:39









        Andrea CividiniAndrea Cividini

        11




        11























            -1














            In most cases if you expect HTML as output you better use transformToXML() directly in the PHP XSLTProcessor. You gain better control over xsl:output attributes.



            I am not sure if you are directly calling transformToDoc() in the PHP code.






            share|improve this answer























            • Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

              – Andrea Cividini
              Mar 11 at 8:57















            -1














            In most cases if you expect HTML as output you better use transformToXML() directly in the PHP XSLTProcessor. You gain better control over xsl:output attributes.



            I am not sure if you are directly calling transformToDoc() in the PHP code.






            share|improve this answer























            • Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

              – Andrea Cividini
              Mar 11 at 8:57













            -1












            -1








            -1







            In most cases if you expect HTML as output you better use transformToXML() directly in the PHP XSLTProcessor. You gain better control over xsl:output attributes.



            I am not sure if you are directly calling transformToDoc() in the PHP code.






            share|improve this answer













            In most cases if you expect HTML as output you better use transformToXML() directly in the PHP XSLTProcessor. You gain better control over xsl:output attributes.



            I am not sure if you are directly calling transformToDoc() in the PHP code.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 10 at 9:53









            codedawicodedawi

            745




            745












            • Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

              – Andrea Cividini
              Mar 11 at 8:57

















            • Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

              – Andrea Cividini
              Mar 11 at 8:57
















            Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

            – Andrea Cividini
            Mar 11 at 8:57





            Thanks for your help, I just edited the questione because I forgot to add the PHP code I'm using to operate the transformation; I confirm that I'm using transformToXML

            – Andrea Cividini
            Mar 11 at 8:57

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068253%2fphp-xsltprocessor-strips-style-attributes-and-tags%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived