![]() |
NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
![]() ![]() ![]() | THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB |
![]() ![]() ![]() |
The following CSS2 stylesheet also makes business cards visible in the browser:
card { background-color: #cccccc; border: none; width: 300;} name { display: block; font-size: 20pt; margin-left: 0; } title { display: block; margin-left: 20pt;} email { display: block; font-family: monospace; margin-left: 20pt;} phone { display: block; margin-left: 20pt;} |
The transformation applied to the business card:
<card> <name>John Doe</name> <title>CEO, Widget Inc.</title> <email>john.doe@widget.com</email> <phone>(202) 555-1414</phone> <logo url="widget.gif"/> </card> |
looks like:
CSS2 is very limited compared to XSLT:
![]() | COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |
![]() |