This stylesheet defines a single template for adding one or more CSS <link> element based on user-defined parameters.
The current version of the add-css-links stylesheet is 1.0.
released April 19, 2003
<xsl:include href = "/xhtml/add-css-links" /> <xsl:template match = "header"> <head> <title><xsl:value-of select = "title" /></title> <xsl:call-template name = "Add_CSS_Links" /> </head> </xsl:template>
This parameter is used to add a link element defining a stylesheet targeting all media.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_all '/css/all.css shared-styles' <link rel="stylesheet" type="text/css" href="/css/all.css" media="all" title="shared-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is screen.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_screen '/css/screen.css screen-styles' <link rel="stylesheet" type="text/css" href="/css/screen.css" media="screen" title="screen-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is print.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_print \ '/css/print.css long-live-the-paperless-office' <link rel="stylesheet" type="text/css" href="/css/print.css" media="print" title="long-live-the-paperless-office" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is handheld.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_handheld '/css/pda.css pda-styles' <link rel="stylesheet" type="text/css" href="/css/pda.css" media="handheld" title="pda-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is projection.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_all '/css/proj.css proj-styles' <link rel="stylesheet" type="text/css" href="/css/proj.css" media="projection" title="proj-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is screen.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_tv '/css/tv.css kill-your-tv' <link rel="stylesheet" type="text/css" href="/css/tv.css" media="tv" title="kill-your-tv" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is aural.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_aural '/css/aural.css aural-styles' <link rel="stylesheet" type="text/css" href="/css/aural.css" media="aural" title="aural-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is braille.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_aural '/css/braille.css braille-styles' <link rel="stylesheet" type="text/css" href="/css/braille.css" media="braille" title="braille-styles" />
This parameter is used to add a link element defining a stylesheet targeting media whose type is tty.
The parameter is expected to be a string constisting of two parts, each separated by a single space.
The first part should a URI that will be assigned to the href
attribute.
The second part should a string that will be assigned to the title
attribute.
--stringparam css_tty '/css/tty.css tty-styles' <link rel="stylesheet" type="text/css" href="/css/tty.css" media="tty" title="tty-styles" />
Copyright © 2003 Aaron Straup Cope. All Rights Reserved.
Permission to use, copy, modify and distribute this stylesheet and its acompanying documentation for any purpose and without fee is hereby granted in perpetuity, provided that the above copyright notice and this paragraph appear in all copies. The copyright holders make no representation about the suitability of the stylesheet for any purpose.
It is provided "as is" without expressed or implied warranty.