Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Please Help! css and xsl [Thread Next] Re: Please Help! css and xslTo: NULL Date: 4/25/2009 9:39:00 AM <jtmspam@g...> wrote in message news:49f252b7$0$31167$882e0bbb@n...... > How do I use css and xsl? In this code: I am using item.css: > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > exclude-result-prefixes="xs" > version="2.0"> > > John You seem to be somewhat confused about the interaction between XML, XSLT and CSS. CSS can be used directly with XML but the more normal procedure is to transform the XML with XSLT to (X)HTML. This HTML then uses CSS as part of its styling mechanism. For example you might create a div element with a class attribute of "important" you would also have a CSS selector defined: .important { color: #dd0000; font-size: 18pt; } Your XSLT would also make sure that a link to the relevant CSS file was included in the HTML. If this is not what you need please post a full description of your problem, so far we've had half-a-dozen posts none of which give much information on your objectives or where you're struggling. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
