Nailing down this Mozilla, js, xslt thing

Posted by: crocklobster

Nailing down this Mozilla, js, xslt thing - 11/03/2002 17:30

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
Posted by: crocklobster

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 17:36

Alright, too slow. I found it.

Using the DOM Inspector now.

Chris
Posted by: mlord

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 17:52

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..
Posted by: crocklobster

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 19:27

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
Posted by: crocklobster

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 19:45

Also, they just released 0.9.9.

Trying that now.

Chris
Posted by: theory

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 19:58

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.
Posted by: charcoalgray99

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 23:18

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
Posted by: charcoalgray99

Re: Nailing down this Mozilla, js, xslt thing - 11/03/2002 23:26

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
Posted by: crocklobster

Re: Nailing down this Mozilla, js, xslt thing - 12/03/2002 06:53

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
Posted by: charcoalgray99

Re: Nailing down this Mozilla, js, xslt thing - 12/03/2002 10:13

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
Posted by: crocklobster

Re: Nailing down this Mozilla, js, xslt thing - 12/03/2002 21:31

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