- From: Melon Pult <melonpult47@gmail.com>
- Date: Wed, 8 Jul 2026 17:38:06 -0400
- To: www-style@w3.org
- Message-ID: <CAOYn4idtA5=jwLXRx+9bDdNHQGp9yJDT=SZAu_jKiPO02a5mGg@mail.gmail.com>
I suggest that the CSS Working Group should add XML Style Transformations
to the CSS standard, because of the discontinuation of Client-Side XSLT in
browsers. This would let you use CSS to transform XML into HTML, without
the use of XSLT or external XML parsers. Here is how it would work
You would use the xml-transform declaration to tell the browser to treat
this XML Tag as this HTML tag. You would have to set the value to the name
of an HTML Tag, or an already declared XML Tag
Here is an example CSS file showing my Idea
heading1{
/* Now the <heading1> tag works like the <h1> tag */
xml-transform: h1;
}
RedH1{
/* The <RedH> tag is transformed into a <h1> tag,
then it's text color is changed to red */
xml-transform: h1;
color: red;
}
PinkBgH1{
/* The <PinkBgH1> tag is transformed into
a <RedH1> tag, then it's background color
is changed to light pink */
xml-transform: RedH1;
background-color: pink;
}
Received on Friday, 17 July 2026 13:57:33 UTC