xslt praise

topic posted Thu, February 19, 2004 - 3:39 PM by  Ryan
Testimonials?

First entry, We have a website where thinking very fowardly we abstracted away from html using an xml web element descriptor DTD that we formulated, loosely based on mozilla's XUL. Yesterday i got the dreaded request from management to provide the printer-friendly version of each page with a simple click.

I knew this was coming even even though it wasn't brough up earilier, and is part of why we like the multi-output format options xslt provided.

Due to our planning ahead, i was able to come up with a site wide solution that is xslt based of course. A simple tag of <print-region> now wraps anything we'd like to have in the resulting print friendly document. a 5 line change to our xslt and voila, the stripping of all navigation leaving only the "meat" of the content, or whatever we put in print-regions.

sweet!

Granted similiar techniques using a print-oriented CSS would also have worked, but i find the xslt approach much cleaner.

I'll post a linky as soon as the feature is out of dev.

Ryan
posted by:
Ryan
Austin

Recent topics in "XML & XSLT"