Remix.run Logo
simonw 2 days ago

What do you think their real reason for wanting to remove XSLT is, if not what they claim?

aragilar 2 days ago | parent | next [-]

They don't want to support it (because of their perceived cost-benefit ratio for what they're interested in developing/maintaining), and hence if it is removed from the browser standards then they aren't required to support it (as opposed to driving people to other browsers)? One could ask why do WebUSB and similar "standards" given those would seem (to me) to be a much greater security issue?

El_Camino_Real 2 days ago | parent | prev | next [-]

Why side with the megacorps on every thread, even when it doesn't relate to the big hotness of large language models?

simonw a day ago | parent | next [-]

https://news.ycombinator.com/item?id=44450812#44451491 - "Google's AI overviews is the single worst AI-driven experience in widespread use today"

https://news.ycombinator.com/item?id=44778764#44778850 - "Meta AI gave people a "share" option with several levels of click though required to share a post and it was a fiasco"

https://news.ycombinator.com/item?id=44752546#44755224 - "Claude Opus 4 is 5x the price of Claude Sonnet 4. I don't think it's 5x as good."

JumpCrisscross 2 days ago | parent | prev [-]

> Why side with the megacorps

Reflexively siding with the tech majors is about as dogmatic as reflexively siding against them.

jacquesm 2 days ago | parent | prev | next [-]

To increase the depth of their moat. XSLT would allow anybody with a minimum of effort to extract semantic information from the web.

jeroenhd 2 days ago | parent | next [-]

XSLT is a terrible tool for that job. RDF combined with something like SPARQL is much closer to that, and makes for one of the greatest knowledge processing tools nobody ever uses.

XSLT is designed to work on XML while HTML documents are almost always SGML-based. The semantics don't work the same and applying XML engines on HTML often breaks things in weird and unexpected ways. basic HTML parsing rules like "a <head> tag doesn't need to be closed and can simply be auto-closed by a <body>" will seriously confuse XML engines. To effectively use XSLT to extract information from the web, you'd first need to turn HTML into XML.

oefrha 2 days ago | parent | next [-]

Hey, it works great on the dozens of XHTML websites lying around. Dozens!

int_19h 2 days ago | parent | prev | next [-]

XSLT is designed to work on the XML Infoset, which is basically just an abstract tree of elements with attributes. Which is why XSLT has e.g. HTML output method, even though you use XML snippets to generate it. If you already have logic to parse HTML into a tree, it's trivial to run XSLT on it. Indeed, most recent version of XSLT uses the same trick to process JSON even.

aragilar 2 days ago | parent | prev [-]

I think it's the other way round, it's XML -> HTML not HTML -> XML.

JimDabell 2 days ago | parent | prev | next [-]

> XSLT would allow anybody with a minimum of effort to extract semantic information from the web.

XSLT has been around for decades so why are you speaking in hypotheticals, as if it’s an up-and-coming technology that hasn’t been given a fair chance yet? If it hasn’t achieved that by now, it never will.

jon-wood 2 days ago | parent | prev | next [-]

I feel like this is overly conspiratorial. Likely they want to remove it because it's a pain to support, and used by an ever shrinking proportion of the internet. I don't even necessarily think removing support is a terrible thing, if you want to turn XML into HTML or whatever with XSLT you're still very welcome to do so, you just might have to do it server side rather than expecting every web browser to it for you.

mschuster91 2 days ago | parent | prev [-]

> a minimum of effort

That is not a combination of words that should be mentioned in the same sentence as the word XML or, even worse, XSLT.

XML has its value in enterprise and reliable application development because the tooling is very old, very mature and very reliable. But it's not something taught in university any more, it's certainly not taught in "coding bootcamps", simply because it's orders of magnitude more complex than JSON to wrap your head around.

Of course, JSON has jsonschema, but in practice most real-world usages of JSON just don't give a flying fuck.

Devasta 2 days ago | parent | prev [-]

There are other implementations of XSLT available besides libxslt, some even in Javascript. Security is something that could be overcome and they wouldn't need to break styling on RSS feeds or anything, it could be something like how FF has a js for dealing with PDFs.

It doesn't need to be some big conspiracy: they see the web as an application runtime instead of being about documents and information, don't give a fuck about XML technologies, don't use them internally and don't feel anyone else needs to.