aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-11-24 14:59:41 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-11-24 14:59:41 +0000
commit381af38a0910ca42ccb36568ebbcd147cfbd237b (patch)
tree4c330ac575be9fc703faaeb02ba9e86920b73f7d /src/element.rs
parent87e6ff405b0d687ed341f304fba7c5b391a49359 (diff)
downloadpeanuts-381af38a0910ca42ccb36568ebbcd147cfbd237b.tar.gz
peanuts-381af38a0910ca42ccb36568ebbcd147cfbd237b.tar.bz2
peanuts-381af38a0910ca42ccb36568ebbcd147cfbd237b.zip
automatically declare default namespaces unless overriden
Diffstat (limited to 'src/element.rs')
-rw-r--r--src/element.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/element.rs b/src/element.rs
index 2b149a8..1c04c98 100644
--- a/src/element.rs
+++ b/src/element.rs
@@ -58,7 +58,8 @@ 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_declarations: HashSet<NamespaceDeclaration>,
+ // change this to custom namespace declarations only, so you can override the definition of namespaces if you wish
+ pub namespace_declaration_overrides: 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