Advertisement · 728 × 90
#
Hashtag
#XSLT
Advertisement · 728 × 90
在Google杀死XSLT之后的XML美化方案 即使没有了XSLT,也不能让读者看到光秃秃的XML! # 起因 在半年前,我写了一篇用XSLT美化博客XML文件的文章,自从那以后,每次我在浏览其他人博客的时候,都会看一眼对方博客有没有给自己的订阅文件做美化。不过就在前段时间,我在浏览某个博客的时候,发现他博客的订阅文件,甚至连最基本的XML文档树都没有显示出来。这时候我打开开发者工具看了一眼源代码,发现他也并没有使用`xml-stylesheet`之类的指令……而且控制台貌似报了些错,好像是出现了什么CSP错误……于是我就想,浏览器显示XML文档树的本质,会不会其实也是一种XSLT?之所以报错也有可能是浏览器在自动引用内置的XSLT时违反了CSP。所以我就问了问谷歌AI,结果似乎真的是这样,比如火狐浏览器就内置了一份XSLT文件,IE浏览器也有。正当我为XSLT的功能感到强大时,谷歌AI随后提到,Chrome浏览器决定弃用XSLT,所以以后不要再用XSLT了😰…… 我给我的订阅文件加美化功能才半年,怎么就要不能用了?XSLT出现这么多年都还能用,结果等我加上就要废弃了?当时为了增加这个功能,还是费了不少劲的,怎么能让谷歌说没就没?于是我就开始对这件事进行了调查。 # Google杀死了XSLT 从上面Chrome的弃用XSLT文档中,可以发现,这件事的始作俑者是Mason Freed,他在WHATWG中发起了一个Issue,因为XSLT用的人很少,以及实现XSLT的库很老而且容易出漏洞,所以建议把XSLT从Web标准中删除。在这个Issue中可以发现,有很多人表示不满,毕竟这个功能对想要给自己订阅做美化的博主来说还是很有用的。为了对抗谷歌,还有人做了个网站: https://xslt.rip 。 而且XSLT虽然用的人占比也许不高,但从总量上应该还是挺多的,除了用XSLT美化博客订阅的,甚至还有用XSLT作为博客框架的,另外还有一些人提出一部分政府网站也有使用XSLT。 不过Freed看起来对这件事早有准备,他做了一个Polyfill库,通过WASM的方式让XSLT可以正常工作,为了方便大家使用这个库,我顺手给CDNJS发了个PR,以后可以用CDN引用它了。不过使用这个库的前提是需要在订阅中加一段引用JS的代码,像我博客中的Atom订阅,用的是jekyll-feed插件,里面的格式都是写死的,就用不了了…… 只不过现在已经没办法阻止谷歌了……而且其他浏览器也表示会跟进,看来我们唯一能做的就是去适应了。 # 没有XSLT之后的美化方案 ## 纯CSS 虽然XSLT不能用,但不代表`xml-stylesheet`指令就不能用了,除了XSLT之外,`xml-stylesheet`同样可以引用CSS。只是似乎完全没见过用CSS美化订阅源的,也许是因为光用CSS能做到的事比较少吧,想用CSS给XML文档加链接之类的估计就做不到了。 但目前能选择的也不多了,既然大家都没写过用CSS美化订阅源,那就让我来写一个吧!然而我并不会写😅……那就只好让AI来写了,我把需求说清楚之后,AI就写出来了:feed.css。试了一下效果还挺不错的,我让AI写的这个版本无论是RSS还是Atom都可以使用,如果有人感兴趣可以拿去用。可惜我的Atom订阅因为用的是插件的原因用不了😭,只能加到用纯Liquid实现的RSS订阅上了。 但用纯CSS的缺点也很明显,没办法操作文档的内容,像修改日期格式的就做不了了,而且也不能添加超链接……XML的标签本身对浏览器来说并没有内建的语义,正常情况下也没法让浏览器把某个标签当作超链接。那难道就没办法了吗? ## 混合XHTML 如果完全不能修改XML内容,那确实就没有办法了,但如果能修改XML的内容那还是有办法的,简单来说就是混入XHTML,事实上Freed编写的Polyfill库原理上也是利用了XHTML,只要在能作为XHTML的标签中添加XHTML的命名空间,那么浏览器就可以理解它的语义并渲染,像刚刚用纯CSS美化的订阅没有链接,那就可以在根元素中添加命名空间:`xmlns:xhtml="http://www.w3.org/1999/xhtml"`,然后在合适的位置写: <xhtml:a href="https://example.com">Read more -></xhtml:a> 就可以了。只是这样有个缺点,这样写的订阅文件不够“纯粹”,用验证器验证会显示“Misplaced XHTML content”警告。对有洁癖的人来说可能会有点难受😆。 不过如果能接受这种“不纯粹”,那么其实`xml-stylesheet`指令也没必要了,`link`标签一样可以用,包括`script`也是,所以有人写了一个不使用XSLT美化XML的库。 只不过这种方法和XSLT相比还是有一些缺陷,要知道XSLT的本质是转换,是把XML转换为HTML,也就是说转出来的文档本质是HTML,所有的DOM操作都和操作HTML是完全相同的,但是在XML里混入XHTML标签就不一样了,它的本质依然是XML文档,只是嵌入了XHTML命名空间下的元素,所以相应的DOM操作会有一些不同。如果是自己写的纯JS可能还好,如果是用了jQuery之类假定DOM为HTML的库就会出现问题了,因此这也就是那个Polyfill库的局限性,用正常的XSLT执行`document.constructor`会显示`HTMLDocument`,而用这个Polyfill库执行完则是显示`XMLDocument`。因此,直接套用为浏览器原生XSLT编写的旧样式文件,就有可能会出问题,但如果要考虑改XSLT的话那还不如重新写JS,然后用XHTML引入呢。 # 感想 虽然有一些技术会因为各种各样的原因消失,但这不代表我们就要妥协一些东西,总有一些不同的技术可以解决相同的问题,所以我们只需要用其他的技术去实现就好了。不过这也是没办法的事情,毕竟没人能改变浏览器厂商们的决策啊😂。

在Google杀死XSLT之后的XML美化方案 即使没有了XSLT,也不能让读者看到光秃秃的XML! 即使没有了XSLT,也不能让读者看到光秃秃的XML! 起因 在半年前,...

#XML #Feed #XSLT #美化

Origin | Interest | Match

0 0 0 0

VEILLE 🧐 DATA 📚

Amélioration de l'accès aux 1900 fichiers téléchargeables/affichables de la base de données RSS

atlasflux.saynete.net#base

#xslt #xml #opml #regex #rss #agrégateur #annuaire #veille

0 0 1 0
#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 #1964JamesClarkのXSLT_平成IT史ざっくり解説 doping consomme blog

#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 dopingconsomme.blogspot.com/2025/11/xslt...

·
瞬速の特異点――Gemini 3 Flashが暴く知性のデバリュエーション #Gemini3 #AI革命 #DeepThink #2025王18GoogleのGemini3Flash_令和IT史ざっくり解説AI編” (1 user) htn.to/2qymGrEyk9 #ai #google

0 0 0 0
歴史を消す「歴史学者」?🤯 玉田敦子教授の削除要請が暴く、令和の #知の危機 と #人文主義 の末路 #王19 #1972玉田敦子と歴史否定主義_令和日本史ざっくり解説 doping consomme blog

“歴史を消す「歴史学者」?🤯 玉田敦子教授の削除要請が暴く、令和の#知の危機#人文主義 の末路 #1972玉田敦子と歴史否定主義_令和日本史ざっくり解説” (1 user) htn.to/4u7tC7uJSE #歴史 #言葉 #カルチャー #人文 #メディア倫

·
#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 #1964JamesClarkのXSLT_平成IT史ざっくり解説 dopingconsomme.blogspot.com/2025/11/xslt...

0 0 0 0
Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS.
Jacques is now 4 years old.

Have not done a much of c-sharp but a lot of XSLT.

 
#catsofmastodonfeature #catsofmastodon #cat #cats #caturday #catsdaily #catcontent #XSLT

Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS. Jacques is now 4 years old. Have not done a much of c-sharp but a lot of XSLT. #catsofmastodonfeature #catsofmastodon #cat #cats #caturday #catsdaily #catcontent #XSLT

Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS.
Jacques is now 4 years old.

Have not done a much of c-sharp but a lot of XSLT.


#catsofmastodonfeature #catsofmastodon #cat #cats #caturday #catsdaily #catcontent #XSLT

4 0 0 0

2nd update: I also figured out how to apply the new-ish JSON transformations of #XSLT 3 and #XPath 3.1 to parse the encapsulated #MarcXML

0 0 0 0
Preview
XSLT Debugger (Windows) - Visual Studio Marketplace Extension for Visual Studio Code - A VS Code extension for debugging XSLT using a .NET Debug Adapter.

Da habe ich gestern einen dummen Fehler in mein XSLT eingebaut und erst diese Erweiterung für Visual Studio Code hat mir die Augen geöffnet :-)

#XSLT #XSLTTransformation

marketplace.visualstudio.com/items?itemNa...

0 0 0 0

I had completely forgotten about that #xslt thing. It was a far better solution than the combination of #JSON #JS #Angular / #React

1 0 0 0
Preview
Critical 7 Zip Vulnerability With Public Exploit Requires Manual Update Follow us on Bluesky, Twitter (X), Mastodon and Facebook at @Hackread

Chrome team should deprecate the ZIP format and remove support while providing a javascript polyfill.

The “very few users” of ZIP should shut up and get in line.

#XSLT

hackread.com/7-zip-vulner...

0 0 0 0
Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS.
Jacques is now 4 years old.

Have not done a much of c-sharp but a lot of XSLT.
Home Office with Cats and Books

The image depicts a cluttered home office space filled with various objects that suggest it is used for work or study. In the foreground, there's an assortment of books on programming languages such as XML and C#, indicating a focus on computer science or web development. A cat bed with two cats sleeping comfortably in their respective spots adds a personal touch to the workspace.
Home Office Setup 
#catsofmastodonfeature #catsofmastodon #cat #cats #caturday #catsdaily #catcontent #XSLT

Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS. Jacques is now 4 years old. Have not done a much of c-sharp but a lot of XSLT. Home Office with Cats and Books The image depicts a cluttered home office space filled with various objects that suggest it is used for work or study. In the foreground, there's an assortment of books on programming languages such as XML and C#, indicating a focus on computer science or web development. A cat bed with two cats sleeping comfortably in their respective spots adds a personal touch to the workspace. Home Office Setup #catsofmastodonfeature #catsofmastodon #cat #cats #caturday #catsdaily #catcontent #XSLT

Taken on September 7 2007 at 20:49:59 with a Canon DIGITAL IXUS 800 IS.
Jacques is now 4 years old.

Have not done a much of c-sharp but a lot of XSLT.
Home Office with Cats and Books

The image depicts a cluttered home office space filled with various […]

[Original post on mastodon.ozioso.online]

2 0 0 0

Some argue XSLT is vital for specific use cases like rendering RSS feeds or enabling non-programmers to create web pages. It offered a declarative way to transform XML directly in the browser, empowering diverse content presentation. #XSLT 2/7

0 0 1 0
icones de base de données, en l'occurrence XML, et RSS

icones de base de données, en l'occurrence XML, et RSS

DATA 📚 CYBERSÉCURITÉ 🛡

Disparition programmée du langage XSLT par Google. À lire sur l'Atlas des flux pour juger des arguments sur la sécurité, et en mesurer les conséquences sur les standards du web.
atlasflux.saynete.net/index.php?ar...

#xslt #xml #rss #podcast #w3c #cybersécurité #chrome

0 2 0 0
#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 doping consomme blog

#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 #ウェブの歴史  #情報格差の真実 #オープンウェブの危機 #Googleの闇
dopingconsomme.blogspot.com/2025/11/xslt...

·
#リバタリアニズムは本当に「死んだ」のか?自由の行方と民主主義の危機を問う #政治思想 #自由論 #現代社会 #士10 dopingconsomme.blogspot.com/2025/11/libe...

0 0 0 0
MATHLING Home Page

#GenerativeArt interlude

Art code release

Mostly a bunch of small changes and fixes. The major things are (1) integration with Markup Blitz and (2) full text search for the website

Enjoy: https://mathling.com/

#XQuery #XSLT

1 2 0 0

A core debate: is XSLT still vital for styling RSS feeds & maintaining semantic web principles, or is it an outdated, complex, and buggy technology easily replaced by modern JavaScript? Community opinions are sharply divided on its relevance. #XSLT 2/5

0 0 1 0
XSLT 安息吧 XSLT RIP (xslt.rip) 15:39  ↑ 112 HN Points

google ... "do no evil" ... my arse ... google plans to discontinue Extensible Stylesheet Language Transformations (XSLT)

https://xslt.rip/

#google #DoNoEvil #XSLT #XSLTRemoval

0 0 0 0
#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 doping consomme blog

#XSLTの鎮魂歌:Googleに葬られたオープンウェブの夢 #XSLT #ウェブの未来 #デジタル主権 #士10 #ウェブの歴史  #情報格差の真実 #オープンウェブの危機 #Googleの闇
dopingconsomme.blogspot.com/2025/11/xslt...

·
#リバタリアニズムは本当に「死んだ」のか?自由の行方と民主主義の危機を問う #政治思想 #自由論 #現代社会 #士10 dopingconsomme.blogspot.com/2025/11/libe...

0 0 0 0
Original post on liilliil.ru

Я бы с удовольствием написал #xslt must die, но оно уже родилось мёртвым. За всё время (это ≈25 лет) я видел 1-2 сайта, использующих эту технологию. А от подобной клоунады с комиксансом и говноклипартом (https://xslt.rip/ мне хочется, чтобы оно сдохло ЕЩЁ БЫСТРЕЕ […]

1 1 1 0
Original post on gts.skobk.in

Web browser vendors can or attempt to do:

* DRM;
* 3D graphics;
* GPU access;
* USB access;
* socket access;
* privacy‐invading advertising helpers;
* video…



Web browser vendors couldn’t care less about:

* layout — took forever, still has gaps in features, and has no simple […]

1 0 0 0
Original post on digitalcourage.social

This week I have been digging around in the #InternetArchive looking for digitised Arabic periodicals. With a bit of #Rstats and far too many hours with #XSLT and #TEI/XML spent on identifying titles based on the very patchy metadata provided by uploaders, there are quite some exciting finds […]

0 2 0 0
Awakari App

Removing XSLT for a more secure browser Removing XSLT for a more secure browser Previously discussed back in August , it looks like it's now official: Chrome intends to deprecate and remove XSL...

#browsers #chrome #security #web-standards #xml #xslt #jake-archibald

Origin | Interest | Match

0 0 0 0
Preview
Removing XSLT for a more secure browser  |  Web Platform  |  Chrome for Developers Prepare for Chrome deprecating and removing XSLT from the browser.

#Development #Announcements
Removing XSLT for safer browsing · Google intends to drop XSLT support in Chrome ilo.im/1687ga by Mason Freed and Dominik Röttsches

_____
#Styling #RSS #XML #XSLT #JavaScript #Security #Chrome #Browser #WebDev #Frontend

2 0 0 0

Did you know #XPath 3 (2016) is a Turing-complete functional and declarative language? As are #XSLT 3 (which uses XPath and #XQuery which extends it). And #XProc 3 is a data flow language that also uses XPath.

These are widely used, powerful, efficient, and super pointy.

#XMLisUseful #markupMonday

2 1 0 0
Original post on mastodon.scot

#XSLT used to be my goto tool for transforming documents. Today I was facing a document transformation problem (the daring fireball `markdown` program does not emit valid HTML, and although you can pipe it through `tidy`, tidy won't extract the first `h1` and use it as `title`), so I thought […]

0 0 0 0

Are there good tutorials/best practices for XSLT 3.0? I used to dabble in 1.0 quite a bit of time ago… I will likely read the specification, but that will be later.

#lang_en #XSLT #questions

0 0 0 0
Original post on fedihum.org

This is great news for all #XML and #pandoc users: Pandoc has now a native XML reader and writer for an XML representation of its internal document model (which was previously mainly serialized as JSON). This means that it is now possible to add support for new input or output formats via X […]

1 7 0 0
Many people are complaining, but they decided to lock the discussions on GitHub.

Many people are complaining, but they decided to lock the discussions on GitHub.

In the long series of killing RSS and the open Internet by large corporations (this PR is from Google/Chromium), they are removing XSLT from the HTML spec.

- https://github.com/whatwg/html/pull/11563
- https://github.com/whatwg/html/issues/11523

Many people […]

[Original post on paperbay.org]

0 0 0 0
Preview
Making XML human-readable without XSLT JavaScript is right there.

#Development #Techniques
Human-readable XML without XSLT · “JavaScript is, in my opinion, a better option.” ilo.im/166kvs by Jake Archibald
_____
#WebFeed #RSS #XML #XSLT #HTML #JavaScript #Browser #WebDev #Frontend #Backend

2 0 0 0