Thats because the policy still says that it should be in the same dir . we only allow different ways, as long the xml displays in firefox3 (And other browsers ofcourse).Erik Frèrejean wrote:One more comment on the change in that policy (not sure whether this is the right place, but I think so). MPV still thinks that it is wrong to have the xsl not in the same directory as the xml
Click for full size
I have a vague memory about reading a discussion some way back about this - that it was OK to rename the xsl file... (even encuraged to do it (sort of)) to avoid missconceptions it's a stylesheet, and not the edits for for prosilver.The filename for the MODX XSL must be modx.prosilver.en.xsl
I just tested this and it was working on my (mac) FF3.0.3primehalo wrote:The Firefox 3 security issue does not allow accessing files that are in a higher level on a file system (as in, if you use "../"), as I have verified on both Windows and Linux, but it has absolutely no problem with lower level access. I have repackaged all of my MODs like this, and Firefox 3 has no trouble with it:
./installation instructions.xml
./contrib/template subsilver2.xml
./contrib/language es.xml
./contrib/language ru.xml
./contrib/xsl/modx.prosilver.en.xsl
Code: Select all
<link type="dependency" href="../../Install.xml" lang="en">Main MOD file - Install.xml</link>
It will work on a webserver, such as if you are viewing the instructions on a localhost: http://localhost/install.xml, but it doesn't work if you are viewing it as a file on the hard drive, such as file:///C:/install.xml... or at least that's how it works on a Windows XP machine.iEric wrote:I just tested this and it was working on my (mac) FF3.0.3primehalo wrote:The Firefox 3 security issue does not allow accessing files that are in a higher level on a file system (as in, if you use "../"), as I have verified on both Windows and Linux, but it has absolutely no problem with lower level access. I have repackaged all of my MODs like this, and Firefox 3 has no trouble with it:
./installation instructions.xml
./contrib/template subsilver2.xml
./contrib/language es.xml
./contrib/language ru.xml
./contrib/xsl/modx.prosilver.en.xsl
./install.xml
./contrib/subsilver2/subsilver2.xml
./contrib/updates/update1.xml
./contrib/updates/update2.xml
./contrib/xsl/modx.prosilver.en.xsl
Using "../xsl/modx.prosilver.en.xsl" in the 3 last xml files.
If someone could test this... Will this work on PC too?
Because the link is just a link, which you click to take you to another page, while the XSL file is actually loaded by the XML file and affects how it is displayed and how it operates.iEric wrote: But anyway, what really confuses me , and if anyone could please explain why on this...
The FF3-issue:
Having the xsl file in root or in a subfolder within root - then you can't use "../../xsl/modx.prosilver.en.xsl" in your contrib/xx/somefile.xml to call the stylesheet.
But it does work to use ../../ in a linkgroup, when you link back to you main MOD file.Why does it work in one situation and not both? What is the difference?Code: Select all
<link type="dependency" href="../../Install.xml" lang="en">Main MOD file - Install.xml</link>
Not that it matter and we will use what works, but I was just curious on the different behaviours.
Yes, I noticed the "direct access" didn't work, however... if opening the install.xml first, then it was not a problem to navigate back and forth using the link-groups (assuming they're setup with a parent or depenecy link back to install.xml)... so, I guess it won't work as it suppose to anyway.primehalo wrote:It will work on a webserver, such as if you are viewing the instructions on a localhost: http://localhost/install.xml, but it doesn't work if you are viewing it as a file on the hard drive, such as file:///C:/install.xml... or at least that's how it works on a Windows XP machine.