I have an XML file that I want the user to be able to see with two different stylesheets. The stylesheets are mutually exclusive, so only one of them should be active at a a time.
I tried adding the following to the top of my XML file:
<?xml-stylesheet type="text/xsl" href="brief.xsl" title="Breif" ?>
<?xml-stylesheet type="text/xsl" href="detailed.xsl" title="Detailed" alternate="yes" ?>
What I would expect to happen was that brief.xsl
would be used as the default stylesheet, and "Detailed" would show up as an item in the "View -> Page Style" menu, but Firefox seems to ignore the second stylesheet (I only get the items "No Style" and "Basic Page Style", which are the default ones for every page).
Does Firefox not support the alternate
attribute, or am I doing something (else) wrong? Do other browsers support this?