From c2a84072ac8c393a28711e118942da7b0377d895 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 19 Nov 2024 16:07:34 +0000 Subject: fix attribute namespace resolution --- src/element.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/element.rs') diff --git a/src/element.rs b/src/element.rs index 4c39c6a..6d2a6b7 100644 --- a/src/element.rs +++ b/src/element.rs @@ -19,7 +19,7 @@ pub struct NamespaceDeclaration { #[derive(PartialEq, Eq, Hash, Clone, Debug)] pub struct Name { pub namespace: String, - pub name: String, + pub local_name: String, } #[derive(Debug)] @@ -40,7 +40,7 @@ pub struct Element { // namespace: String, // hashmap of explicit namespace declarations on the element itself only // possibly not needed as can be calculated at write time depending on context and qualified namespace, and for reading, element validity and namespaces are kept track of by the reader. - // pub namespace_decl: HashSet, + pub namespace_declarations: HashSet, // attributes can be in a different namespace than the element. how to make sure they are valid? // maybe include the namespace instead of or with the prefix // you can calculate the prefix from the namespaced name and the current writer context -- cgit