A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
<p:declare-step type="p:store"> <p:input port="source"/> <p:output port="result" primary="false"/> <p:option name="href" required="true"/> <!-- anyURI --> <p:option name="byte-order-mark"/> <!-- boolean --> <p:option name="cdata-section-elements" select="''"/> <!-- ListOfQNames --> <p:option name="doctype-public"/> <!-- string --> <p:option name="doctype-system"/> <!-- anyURI --> <p:option name="encoding"/> <!-- string --> <p:option name="escape-uri-attributes" select="'false'"/> <!-- boolean --> <p:option name="include-content-type" select="'true'"/> <!-- boolean --> <p:option name="indent" select="'false'"/> <!-- boolean --> <p:option name="media-type"/> <!-- string --> <p:option name="method" select="'xml'"/> <!-- QName --> <p:option name="normalization-form" select="'none'"/> <!-- NormalizationF -> <p:option name="omit-xml-declaration" select="'true'"/> <!-- boolean --> <p:option name="standalone" select="'omit'"/> <!-- "true"|"false"|"omit" --> <p:option name="undeclare-prefixes"/> <!-- boolean --> <p:option name="version" select="'1.0'"/> <!-- string --> </p:declare-step>
Mit Hilfe von <p:store> können die eingehenden Dokumentinformationen in eine URI gespeichert werden. Die Angabe des “href“ Werts ist als “anyURI“ ausgewiesen, was bedeutet, dass der Benutzer freie Wahl bei der Bezeichnung des Ziels hat (i.d.R ein Dokumentname). Da <p:store> keinen primären Output-Port hat, muss dieser zwingend beim Anlegen definiert werden. Die anderen Optionen sind allesamt optional.
Beispiel
Im folgenden Beispiel wird der eingelesene Input in eine XML Datei (“ausgabe.xml“) geschrieben.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0"> <p:input port="source"> <p:document href="filmsammlung.xml"></p:document> </p:input> <p:output port="result"><p:empty/></p:output> <p:store href="ausgabe.xml"></p:store> </p:declare-step>
Das Dokument “ausgabe.xml“ wird im selben Verzeichnis erzeugt, wo sich das XProc Stylesheet befindet.