<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:px="http://www.daisy.org/ns/pipeline/xproc" version="1.0" type="px:ncc-to-opf-metadata" exclude-inline-prefixes="#all"> <p:documentation xmlns="http://www.w3.org/1999/xhtml"> <p>Extract <a href="https://w3c.github.io/publ-epub-revision/epub32/spec/epub-packages.html#sec-pkg-metadata">OPF metadata</a> from a NCC document</p> </p:documentation> <p:input port="source"/> <p:output port="result"/> <p:option name="pub-id" required="true"/> <p:xslt> <p:with-param name="pub-id" select="$pub-id"/> <p:input port="stylesheet"> <p:document href="ncc-metadata-to-opf-metadata.xsl"/> </p:input> </p:xslt> </p:declare-step>