Kroc / NoNonsenseForum

A free, open source, PHP-based simple discussion forum. It favours removing barriers to conversation rather than massaging egos. Download Here: https://github.com/Kroc/NoNonsenseForum/archive/master.zip
http://camendesign.com/nononsense_forum
Other
247 stars 34 forks source link

Stylesheet #240

Open sjehuda opened 6 months ago

sjehuda commented 6 months ago

Greetings

I suggest to add a stylesheet to the feeds.

XSLT stylesheet is able to transforms XML into HTML.

You can try this https://gitgud.io/sjehuda/streamburner (streamburner.xsl)

Ignore the CSS stylesheet, as yours is better than mine.


Speaking of which...

Provided all web browsers support XSLT, you can deprecate HTML in favour of using XML exclusively.

You can do it by using XSLT with CSS, and an embedded JS to manage GET/POST requests.

Kroc commented 6 months ago

As mentioned in #172, this is not possible in practice due to bugs and limitations of XSLT support in browsers -- a situation unchanged from 20 years ago when I first started experimenting with XML in browsers, and then tried to implement a site in XML+XSLT in 2008. I did use XML, but XSLT was not reliable and Mozilla kept breaking it by forcing XML-view despite the presence of an XSLT stylesheet

sjehuda commented 6 months ago

You can still add XSLT stylesheet to the XML files, in addition to the already provided HTML interface.

As mentioned in #172, this is not possible in practice due to bugs and limitations of XSLT support in browsers -- a situation unchanged from 20 years ago when I first started experimenting with XML in browsers, and then tried to implement a site in XML+XSLT in 2008. I did use XML, but XSLT was not reliable and Mozilla kept breaking it by forcing XML-view despite the presence of an XSLT stylesheet

This is bad.

Appearing as a benevolent entity when in fact that entity is doing everything in reverse.

One of which has made me absolutely confused for days (can you imagine the time wasted?) to understand what went wrong with one of my first JS programs.

It appears that the XSLTProcessor wors in a selective manner, as long as the style doesn't apply to the whole page.

https://openuserjs.org/garage/Why_my_script_doesnt_work_with_Firefox#comment-18732ed911e

Eventually, an additional backend (browser engine) will rise against these defected products these vendors spread.


This is not the place for ranting, but I feel I must.

sjehuda commented 2 months ago

Did you consider adding support for XMPP PubSub?

Your content will remain as you decide and Movim will connect your content with HTML browsers.

See