Skip to content

XSD Update#4

Open
franz-ms-muc wants to merge 1 commit into
azoitl:FBTypefrom
franz-ms-muc:FBType_x
Open

XSD Update#4
franz-ms-muc wants to merge 1 commit into
azoitl:FBTypefrom
franz-ms-muc:FBType_x

Conversation

@franz-ms-muc

Copy link
Copy Markdown

I guess a PR is easier to read.
here you go.

Copilot AI review requested due to automatic review settings June 16, 2026 06:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the IEC 61499-related XSDs to loosen some attribute requirements, add ASN.1 tagging metadata, and align network/block models with richer attribute/parameter content.

Changes:

  • Relaxed several previously-required attributes and expanded FB/Connection/VarDeclaration content models to allow embedded Attribute/Parameter groups.
  • Added ASN1Tag and ASN1TagClass schema types to support ASN.1 tagging on data types.
  • Refactored shared text types (ST, Other) and adjusted several attribute names/types across schemas.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/specs/xsds/fbtype.xsd Makes several attributes optional and removes local ST/Other type declarations.
src/specs/xsds/fbnetwork.xsd Allows FB to contain Parameter/Attribute elements; extends Connection with AttributeGroup; renames a coordinate attribute.
src/specs/xsds/datatype.xsd Adds ASN1Tag element + supporting types; allows VarDeclaration to contain AttributeGroup.
src/specs/xsds/common.xsd Changes Identification/VersionInfo to simple-content; revises Attribute type; tightens NameCommentAttributes@Name type.
src/specs/xsds/block-common.xsd Reorders Sockets/Plugs sequence items; renames With@var; adds ST/Other type declarations.
Comments suppressed due to low confidence (1)

src/specs/xsds/fbtype.xsd:1

  • ST and Other type declarations were removed from this schema (and appear added in block-common.xsd). If fbtype.xsd is intended to be consumed/compiled independently, moving these shared types can introduce missing-type errors unless there is a guaranteed xs:include/xs:import chain. Consider centralizing shared types in a common schema that is explicitly included where needed, and avoid having type definitions 'move' between schemas without a stable inclusion strategy.
<?xml version="1.0" encoding="UTF-8"?>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 25 to 30
<xs:element name="InputVars" type="InputVars" minOccurs="0" maxOccurs="1"/>
<xs:element name="OutputVars" type="OutputVars" minOccurs="0" maxOccurs="1"/>
<xs:element name="InOutVars" type="InOutVars" minOccurs="0" maxOccurs="1"/>
<xs:element name="Sockets" type="Sockets" minOccurs="0" maxOccurs="1"/>
<xs:element name="Plugs" type="Plugs" minOccurs="0" maxOccurs="1"/>
<xs:element name="Sockets" type="Sockets" minOccurs="0" maxOccurs="1"/>
</xs:sequence>

<xs:complexType name="With">
<xs:attribute name="var" type="Identifier" use="required"/>
<xs:attribute name="Var" type="Identifier" use="required"/>
<xs:attribute name="dx1" type="Coordinate" use="optional"/>
<xs:attribute name="dx2" type="Coordinate" use="optional"/>
<xs:attribute name="y" type="Coordinate" use="optional"/>
<xs:attribute name="dy" type="Coordinate" use="optional"/>
Comment thread src/specs/xsds/common.xsd Outdated

<xs:attributeGroup name="NameCommentAttributes">
<xs:attribute name="Name" type="Identifier" use="required"/>
<xs:attribute name="Name" type="PackageName" use="required"/>
Comment thread src/specs/xsds/common.xsd Outdated
Comment on lines +90 to +93
<xs:complexType name='Attribute' mixed='true'>
<xs:attributeGroup ref="NameCommentAttributes"/>
<xs:attribute name='Type' type='xs:string' use='optional'/>
<xs:attribute name='Value' type='xs:string' use='optional'/>
I guess a PR is easier to read. 
here you go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants