wood burning stoves
The moose likes XML and Related Technologies and the fly likes Can I use CSS in XSLT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Can I use CSS in XSLT?" Watch "Can I use CSS in XSLT?" New topic

Can I use CSS in XSLT?

Qi Liang

Joined: Jun 04, 2003
Posts: 28

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?


Cliff Liang
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Good question. Never looked into this at all. Most of my work was developing XSL's but never combined it with CSS. Interesting...

- m

Take a Minute, Donate an Hour, Change a Life
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Check out the zip file at this link: http://www.dotnetpitstop.com/Examples/ShowHighlightedExample.aspx?Example=XMLwithXSLandCSS

Qi Liang

Joined: Jun 04, 2003
Posts: 28
It works.


Cliff Liang
I agree. Here's the link: http://aspose.com/file-tools
subject: Can I use CSS in XSLT?
jQuery in Action, 3rd edition