Closed Bug 42228 Opened 24 years ago Closed 24 years ago

Enable XSL hooks in default mozilla builds

Categories

(Core :: XML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: nisheeth_mozilla, Assigned: peter.vanderbeken)

References

Details

(Whiteboard: [nsbeta2-][nsbeta3-])

Attachments

(1 file)

We should enable the XSL hooks in the default mozilla builds after ensuring that 
Mozilla fails gracefully if a component implementing the nsIDocumentTransformer 
interface is not found.

Hey Peter, Axel, or Andreas:  any of you want to do this?
Currently I think we have to rethink the whole xsl hook stuff. Correct me if I'm
wrong: Transformiix currently returns a DOM-tree as respresentation of the
resulting document of the transformation. We put in the original xml document to
contain that new DOM-tree. We know nothing of the mimetype of the resulting
document. Can be text/xml, can be text/html, whatever. I think we need to create
the right document and the right ContentSink to layout the resulting document
correctly. I don't see how that can be acomplished with the current API of
nsTransformMediator::TryToTransform() and Transformer->TransformDocument. I
think we should wait with the activation unless it is really clear how the hooks
will work. Or is that just me don't getting it?
I have two issues with nsIDocumentTransformer:
Firstly, it would be great to do progressive transformation. Keith said, he had
some code to do that, what would we need to get the interface support that?

Secondly, for <xsl:include> we need the URL of the stylesheet, so should we move 
from nsIDOMElement to NSIDOMDocument?

Talking about the result doc, as far as I understood the XSLT specs, the output
must be XML, but you can set the namespace. Is this right?

Axel
added nsbeta2 keyword, changed platform/os to all.

Is XML the right component? Wouldn't XSLT be closer, easier to find?

Axel
Keywords: nsbeta2
OS: Windows NT → All
Hardware: PC → All
Putting on [nsbeta2-] radar. Not critical to beta2.
Whiteboard: [nsbeta2-]
Putting on the nsbeta3 radar and setting target milestone to M18...
Status: NEW → ASSIGNED
Keywords: nsbeta3
Target Milestone: --- → M18
Marking nsbeta3- and re-assigning it to Peter who will be at Netscape for the 
next two weeks.  He can get this checked in through the process in place for 
external contributors: get a code review and approval from brendan/waterson.
Assignee: nisheeth → peter.vanderbeken
Status: ASSIGNED → NEW
Whiteboard: [nsbeta2-] → [nsbeta2-][nsbeta3-]
Status: NEW → ASSIGNED
actually the resaulting document can be any mimetype and have any dtd. The three
"standard" output formats are text/xml, text/html and text/plain.
Hi Peter,
I give you an r=axel for switching the hooks on for solaris.
Tested the build with removed XSLT on the Viewer demos, and the xbl demos.
Applied css sheets went allright, without an error, as did applying xslt sheets.
Those of course just did nothin'

Axel
Added dependency on building on Windows.
Nisheeth, please review the patch in 52345.

Axel
Depends on: 51345
Im having no problems on Win2K or linux with XSLT hooks in but no transformiix
library present.
I tested on Mac, so we covered the main platforms.
I'm attaching a patch to remove the MOZ_XSL defines from layout (and rdf). This 
turns on the hooks for XSLT in layout. Please review.
For Mac, nsIDocumentTransformer.idl needs to be added to the layoutIDL.mcp 
project.
After these changes, bug 51345 should be closed as invalid.
Hi,
I made a complete new build, with patch applied and --with-extionsions, and it
works. That is, I have tested the xml viewer demos 14, 15.
The xml slides on
http://www.mozilla.org/newlayout/xml/xml-devcon/slides/slide1.xml are
equally horked in the nightly as in my build. So I don't think that's our fault.
The XBL demos worked, I did some precheckin tests.

r=axel@pike.org

Axel
XSLT hooks are now in default build.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking verified per last comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: