Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#79643 - 11/03/2002 17:30 Nailing down this Mozilla, js, xslt thing
crocklobster
member

Registered: 19/12/2001
Posts: 108
I'm trying to take a look at the problems facing the Mozilla users trying to use CharcoalGray99's stylesheet.

Since I haven't used Netscape since like 3.02, I need some help.

Is there any way to get the source of the stylesheet-applied XML? I can get the xml, but I want to see what Mozilla did as far as the transformation.

This is easy to do in IE if you install the xml tools. Anyone with knowledge on this?

Chris

Top
#79644 - 11/03/2002 17:36 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Alright, too slow. I found it.

Using the DOM Inspector now.

Chris

Top
#79645 - 11/03/2002 17:52 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
There's some releasenotes or FAQ entry or something I saw on mozilla.org as well, that mentions the output of the XML is treated as strict XHTML. Whereas IE does recursive HTML parsing.. therein lie the differences.

So something like &amp is taken literally by mozilla, instead of recursively evaluating it to obtain & which then becomes simply &. But for me, that's an easy fix.. just delete all the silly &amp lines completely.

Then we're left with the harder issues..

Top
#79646 - 11/03/2002 19:27 Re: Nailing down this Mozilla, js, xslt thing [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
I've found something else now.

Even though in the DOM Inspector I see this node
/html/head/script
and it shows the src attribute = /images/jscripts.js

when I was sniffing the network, I see that Mozilla does not make a request for this file.

This is why the javascript pretty much doesn't work in Mozilla when viewing the stylesheet applied XML.

Now, to find out why, and how to workaround it.

Chris

Top
#79647 - 11/03/2002 19:45 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Also, they just released 0.9.9.

Trying that now.

Chris

Top
#79648 - 11/03/2002 19:58 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
Does anyone know what version of XSLT mozilla conforms to? and what elements if does and doesn't handle?

I've never really had problems with mozilla's xslt engine before.

Top
#79649 - 11/03/2002 23:18 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Hey Chris,

Thanks for taking the time to investigate this stuff.

I tried your earlier suggestion about the CDATA command and it didn't seem to help any. I removed the js include completely and put the javascript directly in the xsl, using the following format. It had the same symptoms as before.

<script language="Javascript">
<![CDATA[
<!--
...javascript code here...
//-->
]]>
</script>

Tom

Top
#79650 - 11/03/2002 23:26 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Also, they just released 0.9.9.

Hey! The remote shows up in the xsl view in 0.9.9! Looks a little funky, but we can probably fix that.

And the pixel-gap is the same height as the problem I am having with the fascia display, I bet it's the same problem.

Tom

Top
#79651 - 12/03/2002 06:53 Re: Nailing down this Mozilla, js, xslt thing [Re: theory]
crocklobster
member

Registered: 19/12/2001
Posts: 108
They support they 1.0 XSLT spec. It looks like the actual transformation is done okay. What is strange is the layout of certain things and the javascript not working in the transformed page.

I'm still looking for some kind of utility to produce the xslt output. That would be huge. It would be nice to be able to start with a static page and know that this is what the transformation gives. Then start tweaking that and working backwards.

Chris

Top
#79652 - 12/03/2002 10:13 Re: Nailing down this Mozilla, js, xslt thing [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
I'm still looking for some kind of utility to produce the xslt output.

Does File -> Save Page As... give what you're looking for?

Tom

Top
#79653 - 12/03/2002 21:31 Re: Nailing down this Mozilla, js, xslt thing [Re: charcoalgray99]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Actually, yeah, cool. Now we're cooking with oil.

If only I wasn't spending 13 hours at work, I'd be able to get somewhere with this. More later...

Chris

Top