Lisa Pease wrote:
> XSL allows me to do all kinds of things I could never do in CSS. Let's take
> a very simple example. Imagine I have a book catalog with 1000s of books in
> it. Each has this form in XML:
>
> <BOOK>
> <TITLE>...</TITLE>
> <AUTHOR>...</AUTHOR>
> <CATEGORY>...</CATEGORY>
> <ISBN>...</ISBN>... and so forth.
>
> Imagine now that I want to print it out in this form:
>
> Title: [title]
> Author: [author]
> ISBN: [isbn]
>
> etc.
>
> Using XSL, I can put the text directly into the style sheet once, and have
> it repeat 1000 times for each book listing. In addition, I can select out
> only those portions which I am using for that list.
>
> Now imagine being able to add script to a style within the style definition
> itself. You can do that in XSL. You can't in CSS.
Oh yes you can :
BOOK:before { content : "Title: " }
Section 12.1 of CSS 2.
</Daniel>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|