Vivaldi and XML - basic question



  • Apologies if this has been asked and answered before. My search did not reveal the answer. Can Vivaldi display .xml files (files using xslt to translate them to html) the like Firefox and Konqueror? My (working) examples only show a blank page in 1.0.344.37 (beta 2) Is a plug-in, add-on or extension required? Thanks in advance for any info.



  • @jbuckley2004:

    Can Vivaldi display .xml files (files using xslt to translate them to html) the like Firefox and Konqueror? My (working) examples only show a blank page in 1.0.344.37 (beta 2) Is a plug-in, add-on or extension required?

    Yes, it can display XSL and XML.

    Did you try current Latest Snapshot?

    Please give me a example URL or Code where it doews not work.



  • Sure! And thanks for any help.
    Aa short example of an XML and XSLT set-up that doesn't work for me in Vivaldi is this:

    
     <logins><login><name>XYZZY Corp</name>
        <id>My Id Here</id>
        <pwd>My not so secret password here</pwd></login> 
      <login><name>abc corp</name>
        <id>My secret login identity here</id>
        <pwd>The PASSWORD</pwd></login></logins> 
    ```You'll see in line 2 that it uses a file lo.xsl to create the html. That file looks like this:
    

    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" version="4.01"><xsl:template match="logins"><title>Login Info</title>

    <center>

    Login Information

    </center>

    <center>
    <xsl:for-each select="login">
    </xsl:for-each>

    | Site | login-id | Password |

       <xsl:value-of select="./name"></xsl:value-of> | <xsl:value-of select="./id"></xsl:value-of> | <xsl:value-of select="./pwd"></xsl:value-of> |
    
    </center></xsl:template></xsl:output></xsl:stylesheet>
    
    In the attached snapshot, you can see the results it gives me when I open the XML file using Konqueror - a simple table with two rows of entries. I get essentially the same results in firefox, but Vivaldi only shows a blank tab.
    Attachments:
    ![](https://forum.vivaldi.net/uploads/attachments/72905/snapshot1.png)


  • Oops. Forgot to add that I get the same results, a blank page, using the latest snapshot too.



  • You open the XML file with file:// URL? That does not work in Vivaldi and Chromium-like browser as it violates security.
    You can see this in Developer Tools Console as a error message after opening XML file in Vivaldi.

    Chromium has this bug with local XSLsince years, seee https://code.google.com/p/chromium/issues/detail?id=70088 for more information about not fixing this. :(

    If you upload the 2 files to a local or remote webserver for testing and open the URL the table is displayed fine.



  • Blocking local XSL will not be fixed as a developer said minutes ago, because of seurity issues.
    I agree to his answer.

    You may set up a local webserver for testing and all is fine.



  • Gwen-Dragon
    Thank you! That was it. I group-installed the web server stuff, started httpd and all is now as it should be.
    I haven't read the google article yet, but I will. I find it interesting that being denied permission to access xml as a local file is considered safer, because I would have thought that putting anything on a server is a bigger security issue. But I'm no expert on security, so I'll defer to the supposed experts on this.

    Thank you for your help!



  • I dont know, why local XML/XSLT may be a more security issue than local JS or CSS files.
    But the decison what is insecure is done by Chromium developers, we cant influence that.


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.