<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:px="http://www.daisy.org/ns/pipeline/xproc" xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" type="px:zedai-to-opf-metadata" exclude-inline-prefixes="#all"> <p:documentation> <p>Extract <a href="https://w3c.github.io/publ-epub-revision/epub32/spec/epub-packages.html#sec-pkg-metadata">OPF metadata</a> from a ZedAI document</p> </p:documentation> <p:input port="source"/> <p:output port="result"/> <p:option name="source-of-pagination" cx:as="xs:string?" select="()"/> <p:xslt> <p:input port="stylesheet"> <p:document href="../xslt/zedai-to-opf-metadata.xsl"/> </p:input> <p:with-param port="parameters" name="source-of-pagination" select="$source-of-pagination"/> </p:xslt> </p:declare-step>