Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I use CSS in XSLT?

 
Qi Liang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some CSS files used in current product. Now I am required to generate HTML with XLST from XML data. But I am not sure whether I can use the CSS style in XSLT?

Thanks!

Cliff Liang
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question. Never looked into this at all. Most of my work was developing XSL's but never combined it with CSS. Interesting...

- m
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the zip file at this link: http://www.dotnetpitstop.com/Examples/ShowHighlightedExample.aspx?Example=XMLwithXSLandCSS

Eric
 
Qi Liang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works.

Thanks!

Cliff Liang
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic