diff --git a/crates/idml/src/lib.rs b/crates/idml/src/lib.rs index f7a698c34..3b2cf45f7 100644 --- a/crates/idml/src/lib.rs +++ b/crates/idml/src/lib.rs @@ -51,6 +51,14 @@ pub const DOM_VERSION: &str = "16.0"; /// The namespace of the `idPkg` prefix. pub const PACKAGING_NS: &str = "http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"; +/// Writes the bounded XMP metadata packet used by an IDML package. Dates are already normalized +/// ISO-8601 values supplied by the caller; this function owns the XML vocabulary and envelope. +pub fn xmp_metadata(create_date: &str, modify_date: &str) -> String { + format!( + "\n\n \n \n {create_date}\n {modify_date}\n \n \n\n" + ) +} + /// Why a package was not read or not written. #[derive(Clone, Debug, PartialEq, Eq, thiserror::Error)] pub enum Error {