css-tools

Parse styles in an XHTML document and expand as XML attributes (CSSa)

Repository
Git URLhttps://github.com/transpect/css-tools.git
SVN URLhttps://github.com/transpect/css-tools
Base URIhttp://transpect.io/css-tools/

Source ⬇

css:generate

Import

<p:import href="http://transpect.io/css-tools/xpl/css-generate.xpl"/>

Dependencies

Synopsis

<css:generate xmlns:css="http://www.w3.org/1996/css">
  <p:input port="source"/>
  <p:output port="result" primary="true"/>
  <p:option name="cut-paths" select="'false'"/>
  <p:option name="strip-comments" select="'false'"/>
  <p:option name="prepend-resource-path" select="''"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
</css:generate>

css:parse

In order to invoke this step directly with Calabash, you need to specify -l css-tools/xpl/css.xpl and -s {http://www.w3.org/1996/css}parse

Import

<p:import href="http://transpect.io/css-tools/xpl/css.xpl"/>

Synopsis

<css:parse xmlns:css="http://www.w3.org/1996/css">
  <p:input port="source" primary="true"/>
  <p:input port="stylesheet"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
  <p:option name="status-dir-uri" required="false" select="resolve-uri('status')"/>
</css:parse>

css:expand

Import

<p:import href="http://transpect.io/css-tools/xpl/css.xpl"/>

Dependencies

Synopsis

<css:expand xmlns:css="http://www.w3.org/1996/css">
  <p:input port="source" primary="true"/>
  <p:input port="stylesheet"/>
  <p:output port="result" primary="true"/>
  <p:output port="xml-representation"/>
  <p:output port="report" sequence="true"/>
  <p:option name="path-constraint" required="false" select="''"/>
  <p:option name="prop-constraint" required="false" select="''"/>
  <p:option name="debug" required="false" select="'no'"/>
  <p:option name="debug-dir-uri" required="false" select="resolve-uri('debug')"/>
</css:expand>

GitHub sync date: 2017-07-06+02:00