Re: XSLT no longer display the transformed elements
Michael Vincent van Rantwijk <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Jonas Sicking wrote:
> Please file a bug in bugzilla and attach a testcase. This doesn't seem
> like an XSLT bug but rather a bug in the DOM code somewhere.
>
> Feel free to post the bug number here so we can have a look at it.
>
> Best Regards,
> Jonas Sicking
Well yes, but I first need to understand what is going on before I can
make a testcase. I already found some new/interesting details like this one:
Our document fragment, the one we get from
processor.transformToFragment(xmldoc, targetDocument)
looks like this:
<html>
<head>
<body>
and adding it to our target document results into something like this:
#document
<rss>
<html>
<head>
<body>
That used to work, but now fails. I found out that skipping the <html>
node still works, and that results into this document:
#document
<rss>
<head>
<body>
My father said that there shouldn't be an <html> element for
rss/feed/rdf:RDF document nodes, is that correct? I guess that he is
righ, simply because it works ;)
Also, the lines that use method appendChild already skipped the <html>
element and that is why I thought that adding the nodes one by one
worked, but that was only because it skips that node.
Maybe this 'bug' is introduced by some new limitation/regulation in the
(namespace?) code of Mozilla, but that's just a wild guess.
Thank you,
Michael