Skip to content

Fix syntax error in the RELAX NG Compact schema in propertyAttr #104

@domel

Description

@domel

Problem

The RELAX NG Compact schema currently contains a syntax error in the definition of propertyAttr.

The problematic fragment is:

propertyAttr =
  attribute * - ( local:* | rdf:RDF | rdf:ID |
                  rdf:annotation | rdf:annotationNodeID |
                  rdf:about | rdf:parseType |
                  rdf:resource | rdf:nodeID | rdf:datatype | rdf:version |
                  rdf:li | its:dir | | its:version
                  rdf:Description | rdf:aboutEach |
                  rdf:aboutEachPrefix | rdf:bagID |
                  xml:* ) {
      string
  }

There is an extra | between its:dir and its:version:

rdf:li | its:dir | | its:version

This makes the RELAX NG Compact schema syntactically invalid.

Expected behavior

The RELAX NG Compact schema should be parseable as valid RNC.

Suggested fix

Remove the extra | and ensure that the exclusion list is syntactically valid, for example:

rdf:li | its:dir | its:version |
rdf:Description | rdf:aboutEach |

or reformat the exclusion list to make this kind of typo easier to detect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions