fn write_entry( output: &mut String, id: &Identifier<String>, value: Option<&Pattern<String>>, attributes: &[Attribute<String>], transform: &impl Fn(&str) -> Cow<'_, str>, )