re******@redstart.com (Mike Agnes) wrote in
news:be**************************@posting.google.c om:
I would like to link to a single XHTML file and at the same time
specify which of several alternative stylesheets should be used for
screen presentation. Is this possible with the current specification?
Example:
XHTML file is document.html
Links would be something like
<a href="document.html" stylesheet="style1.css">Basic</a>
<a href="document.html" stylesheet="style2.css">Fancy</a>
There is no 'stylesheet' attribute of the anchor tag.
You could use server-side scripting:
<a href="document.php?style=Basic">Basic</a>
<a href="document.php?style=Fancy">Fancy</a>
and have document.php generate the HTML output,
perhaps by parsing document.html and adjusting
the stylesheet name.
Or just author document.html with references
to multiple stylesheets, and let the user
choose which one they want.
--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website:
http://members.shaw.ca/davepatton/