Apply CSS, SCSS and/or XSLT stylesheets
Port | Description |
source primary | Style sheets can be associated with the source in several ways: linked (using an
|
context sequence | Style sheets that are linked to from the source document, or included via the
'stylesheets' option, must either exist on disk, or must be provided in memory via this
port. Style sheets on this port must be wrapped in |
parameters parameter | Parameters that are passed to XSLT transformations and SCSS style sheets (as global variables). |
Port | Description |
result primary | Style sheets are applied to the document in the following way: XSLT style sheets are
applied before CSS/SCSS style sheets. XSLT style sheets are applied one by one, first
the ones from the 'stylesheets' option, then the ones associated with the source
document, in the order in which they are specified. CSS/SCSS style sheets are applied by
"inlining" them, i.e. performing the cascade and capturing the styles of individual
elements in |
result.parameters | A |
Local Name | Namespace URI | Default | Description |
stylesheets | '' | A space separated list of URIs, absolute or relative to source. XSLT style sheets must be specified before CSS/SCSS style sheets. |
|
type | 'text/css text/x-scss text/xsl' | The type of associated style sheets to apply. May be a space separated list. Allowed values are "text/css", "text/x-scss", "text/xsl" and "application/xslt+xml". If omitted, all CSS, SCSS and XSLT style sheets are applied. |
|
media | 'embossed' | The target medium type as a media query. All rules that are contained in a style sheet that matches the specified medium are included. Supported media types are "embossed" and "print". When the target medium is embossed, CSS is interpreted according to the rules of braille CSS. Supported media features are 'width' and 'height'. |