Empty node name is allowed for LIST_NODES; this allows nodes to be
reconstructed looking at their names and namespaces. This is useful to implement xs:any
This commit is contained in:
parent
75b8a0e0b6
commit
965a869262
|
@ -51,6 +51,10 @@ SNIPPET_LIST_NODES
|
|||
<Value-n/>
|
||||
</Parent>
|
||||
|
||||
[note: if there are no other nodes; it is possible to leave snippet name as
|
||||
the empty string; nodes will then be constructed looking at their names and
|
||||
namespaces (this is useful for xs:any)]
|
||||
|
||||
|
||||
SNIPPET_LIST_CONTENT
|
||||
|
||||
|
|
|
@ -331,7 +331,7 @@ lasso_node_impl_init_from_xml(LassoNode *node, xmlNode *xmlnode)
|
|||
type = snippet->type & 0xff;
|
||||
value = G_STRUCT_MEMBER_P(node, snippet->offset);
|
||||
|
||||
if (strcmp(t->name, snippet->name) != 0)
|
||||
if (strcmp(t->name, snippet->name) != 0 && snippet->name[0])
|
||||
continue;
|
||||
|
||||
if (type == SNIPPET_NODE) {
|
||||
|
|
Loading…
Reference in New Issue