[Mozile] Problem with path for rng
James A. Overton
james at overton.ca
Sat Nov 4 20:08:31 PST 2006
Hi Meg,
Sorry about the path problem. I'll take another look at the code to
see what I can improve. (I'll put it at the top of my list, but give
me a couple days...)
You should be able to make it work using a relative path which starts
at the loading page (i.e. basic.html) and leads to the RNG file. An
absolute path should also work. If nether of these things work,
either the problem is worse than I though or it's a different issue.
Renaming "xhtml.rng" "xhtml.xml" would find any server content-type
issues.
The relevant bits of code for loading the RNG file are
mozile.rng.Schema.parse() and load() in rng.js, and mozile.xml.load()
in xml.js.
Once again, sorry for the frustrations.
James
On 2006-Nov-04, at 7:53 PM, Gemstar wrote:
>
> Hi! I'm new to mozile, and I first want to say how positively
> fantastic it
> is. Unfortunately i'm running into the same issue as Reto
> describes here,
> but his fix isn't working for me. Everything works perfectly on my
> localhost, but when I move it to my webserver, it's failing. This
> leads me
> to believe it's a path issue.
>
> The error:
> Schema validation failed.
> 1. Error schema An invalid result was returned from the parsing
> operation:
> null
>
> I've tried every possible variation here:
> mozile.useSchema("../Mozile/lib/xhtml.rng");
> mozile.useSchema("/mydir/Mozile/lib/xhtml.rng");
>
> I tried putting it in the same directory to eliminate any path issue:
> mozile.useSchema("xhtml.rng")
>
> To no avail. I've spent the past 6 hours attempting to debug the code
> giving myself alerts and trying to pinpoint exactly where the
> problem is,
> but I keep finding myself back where I started. Having tried so many
> things, there is a lot of detail I could provide, but I'm not sure
> what
> would be useful to share at this point, so if anyone has some ideas or
> suggestions, I'd appreciate it. I'm almost out of hairs to pull.
>
> Thanks!
> Meg
>
More information about the Mozile
mailing list