spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Chrome 39 XML/XSLT Renders Blank Page


The link works in Firefox but results in blank page in Chrome. I checked with webdev tools and noticed that Chrome loads the xsl files from a different url as Firefox, e.g. .._layout/arena/language.xsl (404) instead of ../_layout/language.xsl (ok). In addition in Chrome I get the error message "Resource interpreted as Stylesheet but transferred with MIME type application/xslt+xml: "http://redemption.armory.eternal-wow.com/_layout/arena/ladder.xsl".
For this issue check Chrome says: Resource interpreted as Stylesheet but transferred with MIME type application/xml

The main problem seems to be the misinterpred xsl:import and xsl:include statements which seems to be a Chrome/Webkit Bug - see e.g. https://code.google.com/p/chromium/issues/detail?id=8441 or google for "xsl import relative path chrome". The first import in ladder.xsl works: <xsl:import href="../includes.xsl" /> (is loaded from ../_layout/includes.xsl). The <xsl:import href="language.xsl"/> in the includes.xsl fails in Chrome - it's resolved to ../_layout/arena/language.xsl instead of ../_layout/language.xsl. Same applies to the xsl:includes, e.g. in the language.xsl - . <xsl:include href="nav/menu.xsl" /> tries to include from ../_layout/arena/nav/menu.xsl instead of ../_layout/nav/menu.xsl.
As it seems to be a Chrome Bug, you could either try to just copy the xsl files to the location where Chrome is looking for them or try to adjust the include/import paths as Chrome seems to interpret the locations based on the main template - as "../includes.xsl" is working as import from the ladder.xsl in the arena-directory but <xsl:import href="language.xsl"/> in the includes.xsl is not resolved relative to the language.xsl, but instead relative to the ladder.xsl, changing to <xsl:import href="../language.xsl"/> might work for Chrome (but maybe won't work for other browsers, so I won't recommend that). Two suggestions - either you double the imports/includes, keeping the current imports/includes and adding each of them with a path relative to the ladder.xsl, or, which would be a cleaner solution, you check if you can move all imports and includes to the ladder.xsl and adjust the paths accordingly.


Categories : Xml

Related to : Chrome 39 XML/XSLT Renders Blank Page
Blank page on FB.ui feed dialog on Chrome mobile
I found the problem. The method ui will use display: 'touch' as default on mobile devices, however Chrome on iOS and Android will not apply this so if you define display: 'touch' it will work in both Safari and Chrome for mobile. Another problem is that display: 'touch' will show mobile interface even on desktop so you have to define display with page or popup for desktop version.

Categories : Javascript
Validation failed: Email can't be blank, Password can't be blank - Not Blank
Like the dump of the parameters show, the hash for the values you're after are nested within "add_clients": "add_clients"=>{ "name"=>"test 3", "email"=>"testform3@gmail.com", ... } So to get the value of, say, email, the code would be params[:add_clients][:email] etc. However I would also checkout the documentation on Strong Parameters as well as how to organise RESTful rout

Categories : Ruby On Rails
IE 10 and 11 renders in IE 7 mode on intranet site.
We have this issue in the organisation that I'm currently working for. Sorry to be the bearer of bad news but, from what we've discovered, the 'fallback' to IE7 is a network wide policy set by the IT department. As we all know, getting things like this changed is like getting blood from a stone ! Every set-up is different however so you could try this: <meta http-equiv="X-UA-Compatible" cont

Categories : HTML
@html.actionlink renders wrong url
By default, it creates a url to the current controller (which is Home in your case). If you want to modify it, you can use another of this function signatures: Html.ActionLink("Domeinen", "Domain", "DomainController")

Categories : Asp Net
Ember.js Modal Dialog renders invisibly
Did you get the relevant CSS from the JSBin example? If the HTML is rendering but you can't see it, it may be because you haven't styled the modal window: .overlay { height: 100%; width: 100%; position: fixed; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.2); } .modal { position: relative; margin: 10px auto; width: 300px; background-color: #fff; padding: 1em; }

Categories : Ember Js
Recently Add
List of data frames to XML
document.getElementByTagName XML
Save records from a tcxgrid into an xml file - Delphi XE2
Proper XML multicall
No XSL transformation of a maximo response
xpath with multiple criterias over siblings and position
Append xml param input to root node of target xml
How to maintain an Excel or Libra-office calc sheet for nested JSON or nested XML convertion
xml file format is wrong, not able to validate it
Join tables in marklogic
Transforming XML to XML, converting attributes to elements
Shopify- need to create a webhook
how to merge separate date and time variable into one datetime format XSLT
xmllint and xpath to parse xml data from https://mail.google.com/mail/feed/atom
How to add a link to a text in a facebook flash template?
XSLT Convert each repetitive elements into unique records
xsl:value-of not working as intended
mstile image location specification
Creating Charts using XSL, XML
XML Parse based on attribute ID
Last day of a month or a year in XSLT
How to see XML output of SOAP request via vendor API using WordPress/Woocommerce
get array result with wsdl and complexType
Same xml element in different places
How to post XML data to plone view and return xml data to sender?
Should a REST service expose a XSD for XML responses?
Querying a log file with multiple XML objects
How to set sorter of a List in Controller in SAPUI5?
XSLT Creating repetitive elements from Complex XML with Field and Metadata ids
and in a xml element
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.