wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 15376
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
It is sorta covered in the JavaRanch Style Guide.
subject: Can I use CSS in XSLT?
Similar Threads
XSLT in MVC model
How to title an XML document with CSS?
How to convert a node into xml format
XML transformation
XML website