Kaydet (Commit) 0666542e authored tarafından Miklos Vajna's avatar Miklos Vajna

Remove not needed file attribute

It was typically the same as the "name" one, just with a .rng suffix,
i.e. redundant.

Change-Id: I8abb296b2ee963e214971ff748fd5b079320dfa9
üst e1ba5826
...@@ -256,9 +256,6 @@ documentation for that file. The schema has two parts: ...@@ -256,9 +256,6 @@ documentation for that file. The schema has two parts:
<define name="namespace-element"> <define name="namespace-element">
<element name="namespace"> <element name="namespace">
<attribute name="name"/> <attribute name="name"/>
<optional>
<attribute name="file"/>
</optional>
<zeroOrMore> <zeroOrMore>
<ref name="start-element"/> <ref name="start-element"/>
</zeroOrMore> </zeroOrMore>
......
...@@ -714,8 +714,7 @@ using namespace com::sun::star; ...@@ -714,8 +714,7 @@ using namespace com::sun::star;
files = {} files = {}
for nsNode in getChildrenByName(modelNode, "namespace"): for nsNode in getChildrenByName(modelNode, "namespace"):
if nsNode.hasAttribute("file"): files[nsNode.getAttribute("name")] = nsNode
files[nsNode.getAttribute("file")] = nsNode
for nsNode in [i for i in getChildrenByName(modelNode, "namespace") if i.getAttribute("name") == nsName]: for nsNode in [i for i in getChildrenByName(modelNode, "namespace") if i.getAttribute("name") == nsName]:
nsLabel = nsToLabel(nsNode) nsLabel = nsToLabel(nsNode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment