mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
server/rom_filter: generate top-level attributes
Conditionally inject attributes on the output XML node with ``<attribute name="..." value="..."`` Fix #2348
This commit is contained in:
parent
05655a9d88
commit
0d488925ee
@ -279,7 +279,14 @@ void Rom_filter::Main::_evaluate_node(Xml_node node, Xml_generator &xml)
|
||||
if (node.has_sub_node("else"))
|
||||
_evaluate_node(node.sub_node("else"), xml);
|
||||
}
|
||||
}
|
||||
} else
|
||||
|
||||
if (node.has_type("attribute")) {
|
||||
typedef Genode::String<128> String;
|
||||
xml.attribute(
|
||||
node.attribute_value("name", String()).string(),
|
||||
node.attribute_value("value", String()).string());
|
||||
} else
|
||||
|
||||
if (node.has_type("inline")) {
|
||||
char const *src = node.content_base();
|
||||
|
Loading…
x
Reference in New Issue
Block a user