<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:px="http://www.daisy.org/ns/pipeline/xproc" version="1.0" exclude-inline-prefixes="#all" type="px:css-detach" name="main"> <p:documentation> Delete linked and embedded CSS/SASS style sheets. </p:documentation> <p:input port="source"> <p:documentation> CSS style sheets can be associated with the source in two ways: linked (using an 'xml-stylesheet' processing instruction or a 'link' element) or embedded (using a 'style' element). </p:documentation> </p:input> <p:output port="result"> <p:documentation> All CSS style sheets associated with the source are deleted. Note that inlined styles (using a 'style' attribute) are not deleted. </p:documentation> </p:output> <p:label-elements match="/*" attribute="xml:base" label="base-uri(/*)" replace="false"/> <p:xslt> <p:input port="stylesheet"> <p:document href="css-detach.xsl"/> </p:input> <p:input port="parameters"> <p:empty/> </p:input> </p:xslt> <p:delete match="/*/@xml:base"/> </p:declare-step>