|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT vs. CSS (Re: Indexing)
[Hunsberger, Peter] Thomas B. Passin <tpassin@c...> writes: <snip/> > On the other hand, you cannot re-arrange the order of things > using CSS, and here xslt is your friend. If you're sending the output to a CSS capable browser you can use CSS to change the display order of things on the screen??? It can be a bit of a pain, but basically as long as you use absolute positioning and relative units (eg. % for width and em for height) things work pretty well. We have an entire system that uses XSLT to generate lists of XHTML elements that are latter positioned on the screen by dynamically generated CSS. As others have noted, the two technologies do play well together in spite of the fact that they appear to be designed to be antagonistic to each other. [Tom P] Yes, I do absolute positioning too - but you cannot scramble and regroup things as you can with xslt, and you cannot do much in the way of computed output (which you can with xslt). Right now at work, BTW, I have a page that I generate using xslt that uses absolute positioning and javascript to pop up an editing box at the element the user clicks on. So I am very familiar with using CSS to move blocks around. But notice that I use xslt to generate the basic page, then CSS to style it. If the page came to me already in the right form, I would only have to use the CSS part. And one day it will, because this is just a prototyping tool for me to develop the design. Later in production it will be created by someone else using a JSP approach. Right now, I write the CSS into the file from my xslt stylesheet. As I said, create a good page design, using xslt as needed, then use CSS to create the display format from that. This seems to be a good way to go. 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
|
|||||||||

Cart








