xml - XSLT document() usage with WebKit browsers -


I am having a problem when trying to add and access multiple XML documents in an XSL stylesheet. And I am trying to access them in my XML: Template:

  & lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http: //www.w3.org/1999/XSL/Transform" & gt; & Lt; Xsl: output method = "xml" omit-xml-declaration = "yes" /> & Lt; Xsl: select variable name = "doc1" = "document ('test.xml')" /> & Lt; Xsl: template match = "/" & gt; & Lt; Div & gt; & Lt; Span id = "id_total" & gt; & Lt; Xsl: Select Value = "Count ($ doc1 // root)" /> & Lt; / Span & gt; & Lt; / Div & gt; & Lt; / XSL: Templates & gt; & Lt; / XSL: stylesheet & gt;  

When using IE and I get the correct count; Firefox, however any webkit browser (Safari, Chrome) lets me count 0. Any ideas?

There is one in Chrome which prevents local files that reference document functions only locally Can:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;? Xml-stylesheet type = "text / xsl" href = "pitarget.xml"? & Gt; & Lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Xsl: variable name = "girl" = "'howdy'" /> & Lt ;? Var gal? & Gt; & Lt ;! - howdy - & gt; & Lt ;? Echo gall? & Gt; & Lt ;? Html5? & Gt; & Lt; Xsl: output method = "html" encoding = "UTF-8" version = "indent =" yes "standalone =" no "media-type =" text / html "etc- xml-declaration =" no "doctype -system = "About: Legacy-Kopat" /> & lt; xsl: Template Match = "xsl: Style Sheet" & gt; xsl: Apply-Select Template = "Processing-Direction ()" /> Lt; / XSL: Template> Genel: Template Match = "/" & gt; & lt; xsl: Select Value = "Processing-Instruction ('html5')" /> & gt; & lt; Html> gt; top & gt; & gt; meta http-equiv = "content-processing And "content =" text / html; Charset = UTF-8 "/>  gt; body & gt; & lt; XSL: implemented-templates /> & lt; / body & gt; & lt; / html & Gt; & lt; / XSL: Templates & gt; & lt; xsl: Template match = "processing-instructions" ('echo') ">   & Lt; / XSL: Templates & gt; & lt; xsl: Template match = "processing-instructions ('var')" & gt; & lt; xsl: processing-instruction name = "{.}" & Gt; Lt; xsl: Value selection = "." / & Gt; xsl: Select value = "./n   / Pre> 

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -