[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT vs. CSS (Re: Indexing)
[Simon St.Laurent] > tpassin@c... (Thomas B. Passin) writes: > >It is not an either-or situation. I routinely write CSS into > >documents using xslt, getting the best of both. >>... > Are you generating HTML+CSS or XML+CSS? The former is convenient for > old or broken browsers, but the latter's far more flexible. > Either one, depending on the job. Just by coincidence, today I was working with some XML that gets turned into HTML after it resides in some database. The task involves setting up some decent editing capability for someone to tune up and adjust the data. I needed to look at exactly what was getting stuffed into the XML. I wrote a CSS stylesheet to show all the elements in a readable way. It worked great in Firebird. After that, I really needed to rearrange the order and layout of the data. So I am in the middle of writiing an XSLT stylesheet to do that. The first thing I did was to take the HTML I had written of a breadboard of the desired page, and copy it into the stylesheet, CSS and all. Now I am writing the templates to populate the various parts. Back to your question, I normally make sure that my "HTML" is also well-formed XML. This has simplified my life many times. I have become very fond of both XSLT and CSS (which originally left me cold, but now I have a keen appreciation for it). Cheers, Tom P
|
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
|