Open Bug 277031 Opened 20 years ago Updated 2 years ago

XSLT Template Framework

Categories

(Core :: XUL, enhancement)

x86
All
enhancement

Tracking

()

People

(Reporter: sean, Unassigned)

References

()

Details

Attachments

(2 files)

This is a small xbl that provides inline XSLT templating.
I'd prefer to see only asynch requests in general.

I'm not sure if I would like one binding or two bindings, too.

But much more than anything, I would like to see examples. I don't trust our
XSLT engine and XUL. Examples that should eventually work include
 - all kind of menus (with the template hooked up at the root or somewhere in the
   middle of the menu structure
 - xul:tree (hopefully in a somewhat familiar markup structure to rdf templates)
 - xul boxes.

From looking at the code, I don't see how anything generated is actually shown.

Last and least, modification events on style and source should retrigger 
transforms possibly with a timeout so that batch changes get only one rebuild.
There is a simple example at http://www.mvdsl.com/~mcmurrays/myTemplateIdea.xul.
It has a tree and a few menulists.

I agree about the timeout for triggering transforms. As it stands, a template
connected to a datasource will transform once for each change to any datasource.
So even if you populate each datasource in a single shot, the template
transforms once for each datasource. I mentioned before that it would be nice to
consolidate all transform requests in a queue or timeout or something.

As for how the content is actually shown, lines 70-75 remove outdated content
and insert new content into the document.
Attachment #170266 - Attachment description: Makes templates non-displayed. → CSS to not display templates
Attachment #170266 - Attachment description: CSS to not display templates → CSS with xbl bindings, and to not display templates
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: