Make the W3C add XML Transformations to the CSS Standard

1

Let’s get to 5 signatures!
Petitions with 1,000+ supporters are 5x more likely to win!

The Issue

I was making a project in XML, and i wanted to visualize the data in the browser. I decided to use XSLT to visualize my data (XSLT Lets you transform XML tags into HTML tags without using a custom parser easily). When i tried, it didn't work, so i thought i made a mistake. So i tried a XSLT example provided by W3Schools, it it still didn't work. So i looked in the console and it said that browsers are discontinuing client-side XSLT THIS YEAR and XSLT is disabled by default. Even though XSLT is WAY less popular than something like CSS, it's very powerful. If you are saying "JuSt UsE SeRvEr SiDe XsLt, ItS gOiNg To SoLvE yOuR pRoBlEm".

1. Usually Full-Stack is only supported on higher end plans.

2. Some Web Hosts like W3Schools spaces dont support XSLT at ALL

"What about a custom XML parser in JS, all web hosts support JS" 

I don't want to write lots of code just to render XML

"CSS already works just fine"
What if you want to make a custom tag that works like an <iframe> or a <script> tag, that have technical elements to them

How it would work:

/* In a CSS file, you would be able to use the xml-transform property to transform an XML tag into an HTML Tag. The XML tag would also be able to use the attributes of the original HTML tag */

webview {xml-transform: iframe; } /* You would put the name of an HTML tag is the value */

js {xml-transform: script; }

/* In this example, all <webview> tags will work like <iframe> tags.  As well, all <js> tags will work like <script> tags, with the exception you will need to put your scripts in a <[CDATA[]]> first*/

<webview src="https://example.com" width="500px" height="500px"></webview>

<js><[CDATA[ console.log("JS Tag"); ]]>></js>

 

avatar of the starter
MelonPultVR YeeperPetition StarterDeveloper and Content creator

The Decision Makers

Alan Stearns
Alan Stearns
W3C CSS Working Group Chairman
Rossen Atanassov
Rossen Atanassov
W3C CSS Working Group Chairman

Petition Updates