This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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:

Qi Liang

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


Cliff Liang
It is sorta covered in the JavaRanch Style Guide.
subject: Can I use CSS in XSLT?
jQuery in Action, 3rd edition