seems modello does not support this feature yet...
we need adding both sequence and attribute into complexType, like this:

    <xs:complexType>
      <xs:sequence>
        <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
      </xs:sequence>
      <xs:attribute name="combine.children" type="xs:string" use="optional">
  <xs:annotation>
    <xs:documentation source="version">4.0.0+</xs:documentation>
    <xs:documentation source="description">

        {@code combine.children}: available values are {@code merge}
(default) and {@code append}.
        @see &amp;lt;a
href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM
Reference documentation&amp;lt;/a&amp;gt;
        @see &amp;lt;a
href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;

      </xs:documentation>
  </xs:annotation>
</xs:attribute>
      <xs:attribute name="combine.self" type="xs:string" use="optional">
        <xs:annotation>
          <xs:documentation source="version">4.0.0+</xs:documentation>
          <xs:documentation source="description">

                  {@code combine.self}: available values are {@code
merge} (default) and {@code override}.
                  @see &amp;lt;a
href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM
Reference documentation&amp;lt;/a&amp;gt;
                  @see &amp;lt;a
href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;

                </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>

but I only found grammar for get attribute OR sequence into complexType in
modello
o.m.g.
I would have to investigate how to add such feature to modello first.


Xeno Amess <xenoam...@gmail.com> 于2025年1月20日周一 15:26写道:

> @Piotr P. Karwasz
>
> understood.
> reproduced, yes.
> I would investigate it today.
> right now I already found how to solve it into the dest xsd, but I need
> some time to learn about how to insert it into the
> modello-generator&mdo-model.
>

Reply via email to