Exchanging in from RNG generated OdfReference.html the attributes (now second) with the children (now third) to be consistent with ODF specification and logical order
@@ -106,55 +106,55 @@ for an element to have a special child element.</p>
&nbsp;</td>
</tr>
<tr>
-<td class="left">Child Elements</td>
+<td class="left">Attributes</td>
<td class="right">
-#foreach($child in ${element.getChildElements()})
-#if ($child == "*")
-[any org.w3c.dom.Element]&nbsp;
+#foreach( $attribute in ${element.getAttributes()} )
+#if ($attribute == "*")
+[any org.w3c.dom.Attribute]&nbsp;
#else
-#if (${child.withMultiples().size()} <= 1)
+#if (${attribute.withMultiples().size()} <= 1)
#set ($duplicates = "")
#else
-#set ($duplicates = "[${child.getMultipleNumber()}]")
+#set ($duplicates = "[${attribute.getMultipleNumber()}]")
#end
##
-#if (${element.isMandatory($child)})
+#if (${element.isMandatory($attribute)})
#set ($mandatory = "mandatory")
#else
#set ($mandatory = "")
#end
##
-#if (${element.isSingleton($child)})
-#set ($multiple = "")
-#else
-#set ($multiple = "*")
-#end
-##
- <a href="#element_${child}_${child.getMultipleNumber()}" class="unbreakable ${mandatory}">${child}${duplicates}</a>${multiple}&nbsp;
+ <a href="#attribute_${attribute}_${attribute.getMultipleNumber()}" class="unbreakable ${mandatory}">${attribute}${duplicates}</a>&nbsp;
#end
#end
&nbsp;</td>
</tr>
<tr>
-<td class="left">Attributes</td>
+<td class="left">Child Elements</td>
<td class="right">
-#foreach( $attribute in ${element.getAttributes()} )
-#if ($attribute == "*")
-[any org.w3c.dom.Attribute]&nbsp;
+#foreach($child in ${element.getChildElements()})
+#if ($child == "*")
+[any org.w3c.dom.Element]&nbsp;
#else
-#if (${attribute.withMultiples().size()} <= 1)
+#if (${child.withMultiples().size()} <= 1)
#set ($duplicates = "")
#else
-#set ($duplicates = "[${attribute.getMultipleNumber()}]")
+#set ($duplicates = "[${child.getMultipleNumber()}]")
#end
##
-#if (${element.isMandatory($attribute)})
+#if (${element.isMandatory($child)})
#set ($mandatory = "mandatory")
#else
#set ($mandatory = "")
#end
##
- <a href="#attribute_${attribute}_${attribute.getMultipleNumber()}" class="unbreakable ${mandatory}">${attribute}${duplicates}</a>&nbsp;
+#if (${element.isSingleton($child)})
+#set ($multiple = "")
+#else
+#set ($multiple = "*")
+#end
+##
+ <a href="#element_${child}_${child.getMultipleNumber()}" class="unbreakable ${mandatory}">${child}${duplicates}</a>${multiple}&nbsp;
#end
#end
&nbsp;</td>
