xso-proc: allow paths as XML names
Not sure if this is something useful to have, but it feels consistent with `namespace`.
This commit is contained in:
parent
1611c5fba9
commit
4d1166b66d
4 changed files with 82 additions and 30 deletions
|
|
@ -32,7 +32,7 @@ All key-value pairs interpreted by these derive macros must be wrapped in a
|
|||
| Key | Value type | Description |
|
||||
| --- | --- | --- |
|
||||
| `namespace` | *path* | The path to a `&'static str` which holds the XML namespace to match. |
|
||||
| `name` | *string literal* | The XML element name to match. |
|
||||
| `name` | *string literal* or *path* | The XML element name to match. If it is a *path*, it must point at a `&'static NcNameStr`. |
|
||||
|
||||
Note that the `name` value must be a valid XML element name, without colons.
|
||||
The namespace prefix, if any, is assigned automatically at serialisation time
|
||||
|
|
|
|||
Loading…
Reference in a new issue