css:expand (in library css.xpl) expand

Input Ports

NameDocumentationConnections

source

an XHTML document

stylesheet

a stylesheet that can be overriden, e.g. if CSS2.1 features are wanted only

  • Default document: ../xsl/css-parser.xsl

Output Ports

NameDocumentationConnections

result

an XHTML document with CSSa attributes (in addition to its style elements/attributes/linked CSS stylesheets)

xml-representation

There is currently no schema for the internal “CSS as XML” representation. We should use CSSa at some stage, but CSSa was developed after css:expand, and all of CSS may not (yet) fully expressed in CSSa.

Options

NameDocumentationDefault

path-constraint

a predicate for matching only specific nodes, e.g., '[parent::*:tr]' for expanding only HTML table cell attributes

''

prop-constraint

space-separated list of property names that should be attached as css: attributes, e.g., 'width padding-top padding-bottom'

''

debug

'no'

debug-dir-uri

resolve-uri('debug')

Subpipeline

StepInputsOutputsOptions

css:parse parse

source

source on expand

stylesheet

stylesheet on expand

result

debug = $debug

debug-dir-uri = $debug-dir-uri

p:xslt css-xsl

source

result on parse

parameters

p:empty

stylesheet

p:document../xsl/css2xsl.xsl

result

letex:store-debug d41e154

source

result on css-xsl

result

pipeline-step = 'css-expand/css.2.create-xsl'

extension = 'xsl'

active = $debug

base-uri = $debug-dir-uri

p:sink d41e162

source

result on d41e154

p:xslt d41e164

source

source on expand

parameters

p:empty

stylesheet

result on css-xsl

result

letex:store-debug d41e182

source

result on d41e164

result

pipeline-step = 'css-expand/css.3.expanded'

active = $debug

base-uri = $debug-dir-uri