[Mozile] Problem with path for rng

Gemstar parliament23 at yahoo.com
Mon Nov 6 16:16:33 PST 2006


Ah, I just went to look at it again.  Something else I see is that basic.html
is including mozile.js which has both parse(), load() and mozile.xml.load()
functions.  I don't see it using rng.js or xml.js.

When debugging, I see that it seems to get to parse() successfully, but when
it goes to load(), it seems like it's trying to load the path of the file as
a string rather than loading it actually as a file. 

Let me know if this sounds likely.

Thanks so much,
Meg


James A. Overton wrote:
> 
> 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
>>
> _______________________________________________
> 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#a7210336
Sent from the MozDev - mozile mailing list archive at Nabble.com.



More information about the Mozile mailing list