Step set-xml-declaration {http://www.daisy.org/ns/pipeline/xproc}

Sets, or deletes, the xml declaration of a file. If `xml-declaration` is the empty string, the xml declaration will be deleted. It is an error if `xml-declaration` does not match the regex `^<\?xml[ \t\r\n]+version[ \t\r\n]*=[ \t\r\n]*(''1\.[0-9]+''|"1.[0-9]+")([ \t\r\n]+encoding[ \t\r\n]*=[ \t\r\n]*(''[A-Za-z][A-Za-z0-9._-]*''|"[A-Za-z][A-Za-z0-9._-]*"))?([ \t\r\n]+standalone[ \t\r\n]*=[ \t\r\n]*(''(yes|no)''|"(yes|no)"))?[ \t\r\n]*\?>$`. The result port will contain a `c:result` document with the URI to the file as its text node.

Defined in: http://www.daisy.org/pipeline/modules/file-utils/library.xpl

Output Ports

Port Description
result primary

Options

Local Name Namespace URI Default Description
href required
xml-declaration required
encoding 'utf-8'