XSLT stylesheet for XUL

For discussions about side projects, potential future projects or helper applications for Pale Moon.
User avatar
Schimon
Apollo supporter
Apollo supporter
Posts: 41
Joined: 2024-12-09, 14:01

XSLT stylesheet for XUL

Post by Schimon » 2025-07-09, 09:00

Good day.

I am interested in an XSLT stylesheet which transforms XUL to HTML.

This is useful to create a software (i.e. stylesheet) to render XUL files without the need for an XUL software.

I am willing to participate or create that stylesheet, provided that someone who is familiar with XUL would instruct me.

You do not have to be a developer to be an instructor.

User avatar
_yup_
Moonbather
Moonbather
Posts: 59
Joined: 2025-04-26, 11:45

Re: XSLT stylesheet for XUL

Post by _yup_ » 2025-07-09, 14:40

Perhaps, some files than can be downloaded from this page: http://web.archive.org/web/201307261812 ... xulschema/ - will be useful for you goals.

Here is no XLST for XUL -> HTML transformation, but at least here are XLST/XSD files with all XUL elements.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2482
Joined: 2018-05-05, 13:29

Re: XSLT stylesheet for XUL

Post by vannilla » 2025-07-09, 14:45

XUL is actually quite complex and I'm not too sure XSLT is able to transform it.
Sure, there are elements like <label> which can be made into <p> or something, or <vbox> be a <div style="display: flex; flex-direction: column;"></div> in HTML parlance, but for stuff like <tree> you'd have to be careful as it's a fully interactive "sub-UI" with many features.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5689
Joined: 2015-12-09, 15:45

Re: XSLT stylesheet for XUL

Post by moonbat » 2025-07-11, 01:20

XUL is a markup language for creating desktop widgets and GUIs. HTML is a document rendering markup language. Why are you trying to convert apples into oranges? Nobody is coding webpages in XUL for you to translate. XUL is implemented as overlays that can be used to literally extend the browser UI, and each xul file defines UI elements that can be optionally used to overlay the browser or be standalone. There's nothing similar with HTML which is merely for rendering images and text within the browser.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38406
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: XSLT stylesheet for XUL

Post by Moonchild » 2025-07-11, 08:46

The most an XSLT can do here is "preview" what a XUL document might look like, assuming specific widget styles. It won't really be functional or useful beyond that. If that is your goal then you could possibly write an XSLT for it but I'm not sure what use it will have; probably a waste of your time.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite