aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-11-19 16:07:34 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-11-19 16:07:34 +0000
commitc2a84072ac8c393a28711e118942da7b0377d895 (patch)
tree45bb09119935b29cebad87ae14bba4c00a620ffe /src/element.rs
parentc8ed16a2d1d1f1b5278936eeadeae87da7cb104e (diff)
downloadpeanuts-c2a84072ac8c393a28711e118942da7b0377d895.tar.gz
peanuts-c2a84072ac8c393a28711e118942da7b0377d895.tar.bz2
peanuts-c2a84072ac8c393a28711e118942da7b0377d895.zip
fix attribute namespace resolution
Diffstat (limited to 'src/element.rs')
-rw-r--r--src/element.rs4
1 files changed, 2 insertions, 2 deletions
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<Namespace>,
+ pub namespace_declarations: HashSet<NamespaceDeclaration>,
// 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