https://issues.apache.org/ooo/show_bug.cgi?id=113059

--- Comment #17 from Oliver-Rainer Wittmann <o...@apache.org> ---
I had some deeper investigation on the root cause.
My results are:
Our so-called 'model from OOXML' (file model.xml) contains the following
definition:
      <define name="CT_MarkupRangeBookmark">
        <attribute name="id">
          <text/>
          <xs:documentation>Annotation Identifier</xs:documentation>
        </attribute>
        <ref name="CT_MarkupRange"/>
      </define>
But via complex type "CT_MarkupRange" it inherits the definition from complex
type "CT_Markup" whose definition is:
      <define name="CT_Markup">
        <attribute name="id">
          <ref name="ST_DecimalNumber"/>
          <xs:documentation>Annotation Identifier</xs:documentation>
        </attribute>
      </define>
With leads to the following generated code in OOXMLFactory_wml.cxx:
    case NN_wml|DEFINE_CT_MarkupRangeBookmark:
        // CT_Markup
        (*pMap)[NS_wordprocessingml|OOXML_id] = NS_ooxml::LN_CT_Markup_id;
        // CT_MarkupRange
        (*pMap)[NS_wordprocessingml|OOXML_displacedByCustomXml] =
NS_ooxml::LN_CT_MarkupRange_displacedByCustomXml;
        // CT_MarkupRangeBookmark
        (*pMap)[NS_wordprocessingml|OOXML_id] = NS_rtf::LN_IBKL;
        break;
and
    case NN_wml|DEFINE_CT_MarkupRangeBookmark:
      // CT_Markup
        (*pMap)[NS_wordprocessingml|OOXML_id] = AttributeInfo(RT_Integer,
NN_wml|DEFINE_ST_DecimalNumber);
      // CT_MarkupRange
        (*pMap)[NS_wordprocessingml|OOXML_displacedByCustomXml] =
AttributeInfo(RT_List, NN_wml|DEFINE_ST_DisplacedByCustomXml);
      // CT_MarkupRangeBookmark
        (*pMap)[NS_wordprocessingml|OOXML_id] = AttributeInfo(RT_String, 0);
        break;
==> duplicate attribute info for attribute id

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

Reply via email to