Problem in frameworkExtensionScript.xsd: removeAction element's id attribute is too restrictive
Posted: Tue Mar 07, 2023 6:19 pm
When working on an oXygen framework extension script I noticed that action IDs can be any string, but the frameworkExtensionScript.xsd delivered with oXygen (I'm using v25.0) defines the @id-attribute of the <removeAction> element with data type xs:NCName:
So when I try to remove actions with action IDs that don't fit the xs:NCName data model, I get validation errors in my extension script file.
Here's an example from an open source project: Ediarum defines an author action with the ID "sic-corr[deleted]". My .exf file, which is based on the ediarum.BASE.edit framework, fails validation at the line:
Luckily, being able to validate the extension script or not doesn't influence the functionality: Even with the validation error for the above code line, the action is effectively removed from the derived framework, so it's not too big a deal.
Best regards,
Kai
Code: Select all
<xs:element name="removeAction">
<xs:annotation>
<xs:documentation>Removes an action that was added in the Content Completion Assistant from
the base framework configuration.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="id" use="required" type="xs:NCName">
<xs:annotation>
<xs:documentation>Action ID.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
Here's an example from an open source project: Ediarum defines an author action with the ID "sic-corr[deleted]". My .exf file, which is based on the ediarum.BASE.edit framework, fails validation at the line:
Code: Select all
<removeAction id="sic-corr[deleted]"/>
Best regards,
Kai