[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to add styling to the HTML using XSL
Basically, there are two ways to include CSS in HTML documents.
My preference is to have one big section in the header that collects all the elements (you could generate a separate CSS output document instead). This can be achieved by using a special mode ("cssmode") to generate CSS rules within that section. Generate a unique Id for the element, and use CSS id matching to link the generate CSS with the generated element. This method I use (with some optimizations to avoid generating multiple identical CSS rules) in my tei2html scripts (on Google code). Easier is just to use the style attribute of HTML, but this is frowned upon by some CSS/HTML purists. Jeroen. Quoting Sanjaya Liyanage <sanjayacl@xxxxxxxxx>: Hi,
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|