[Mozile] Problem with path for rng

Gemstar parliament23 at yahoo.com
Sat Nov 4 16:53:45 PST 2006


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



Reto Bachmann-Gmür wrote:
> 
> Hello
> 
> I'm setting
> 
> mozile.useSchema("/scripts/mozile/lib/xhtml.rng");
> 
> in mozile.js. Things works fine as long as the URL of the page contains
> no get parameter (like with http://localhost:8585/documentation/rwcf),
> but if there's a get parameter (as in
> http://localhost:8585/documentation/rwcf?mode=gfd) the path section of
> the request the server gets is
> /documentation//scripts/mozile/lib/xhtml.rng
> 
> As a workaround for me I added "../../../../" at the beginning of the
> path of the rng.
> 
> Cheers,
> reto
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-path-for-rng-tf1936466.html#a7180733
Sent from the MozDev - mozile mailing list archive at Nabble.com.



More information about the Mozile mailing list