SoFunction
Updated on 2025-04-13

Use xslt+css to make RSS display as beautiful as web pages

Recently, I have started to study XML+XSLT+CSS to construct web pages. I also regard part of my own website as an experimental product.
Because I threw the lab stuff from this site on another server... but I was too lazy to make a home page, so I synchronized the RSS here.
But how do you look at XML with no associated styles and don't like it...

Direct association CSS can turn XML into a more decent... Although it is not the ultimate goal... I still need to learn it... because not all browsers support XSLT
It seems that all browsers I can use can recognize the associated CSS ~ Unfortunately, CSS alone has too few things to do. It is better to xslt...

Writing CSS directly used for XML is basically no different from CSS I usually write... It's just that the element names are different. It's very difficult... The freedom to write HTML is gone... You can't add elements randomly just because you want a certain effect...
It seems that my level determines that I can only write CSS that is better defined than the text, and then look at the examples. Jump.. Research XSLT.

xslt has a lot of things to do..xml  can finally be used as a web page..

Open a copy of xslt written by someone else and found... so many familiar things.........
For applications in RSS... we only know about XLST

xsl:for-each select="rss/channel/item" 
xsl:value-of select="..." 
disable-output-escaping="yes" 
One loop, one select node... One setting prohibits output escape
Then I copied the template file used by my program... I changed the smarty tag directly to xsl... It looked so similar... I didn't even have to write html... Copy all the way...
After I finish writing the core program of the website, I must try to use xslt to directly make smarty templates...

Then I sorted out a separate CSS and thought it was over...
-________________! Every time I make a web page, some browsers will get upset... This time it's from the moz kernel...
I need to display the HTML in CDATA to make it more like a web page.
You can search and tell me that Mozilla’s Transformiix does not support disable-output-escaping

I remember that feedburner can display HTML code in CDATA in Firefox~
After reading his xslt and search results, I found that... I basically use JS innerHTML to write the content into it again and then display it...

I don't know the reason... I learned everyone's method and barely solved the disable-output-escaping......

When writing JS, I found that...JS is a bit weird...for example...it is different from external links directly written in xslt.
I originally wanted to just have one page... a function that can run random writing... and then I found many strange problems... I don't have time to study him for the time being... I will write some tests when I have time...

Saying so much nonsense...
Everyone, look at the results of my study,

Extended reading
http:///TR/xslt/ 
/?boardid=8 
/xsl/ 
hedong./archives/