xso-proc: Add support for the codec field on attribute meta
This allows a custom TextCodec to be used for encoding and decoding the attribute’s value, instead of FromXmlText and AsOptionalXmlText.
This commit is contained in:
parent
763a603e49
commit
01a0c51a2f
6 changed files with 114 additions and 5 deletions
|
|
@ -253,6 +253,7 @@ fn new_field(
|
|||
qname: QNameRef { namespace, name },
|
||||
default_,
|
||||
type_,
|
||||
codec,
|
||||
} => {
|
||||
let xml_name = default_name(span, name, field_ident)?;
|
||||
|
||||
|
|
@ -270,6 +271,7 @@ fn new_field(
|
|||
xml_name,
|
||||
xml_namespace: namespace,
|
||||
default_,
|
||||
codec,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue