Skip to content

Part 3: REQ009 (sch:pattern in sch:schema) #92

@heidivanparys

Description

@heidivanparys

What is the reason behind REQ009, "Each sch:pattern element SHALL be contained within one sch:schema element"?

Image

Isn't this requirement present already in the Schematron RelaxNG schema (see e.g. https://github.com/xatapult/schematron-book-code/blob/master/schemas/schematron.rnc)?

start = schema
# Element declarations
schema =
  element schema {
    attribute id { xsd:ID }?,
    rich,
    attribute schemaVersion { non-empty-string }?,
    attribute defaultPhase { xsd:IDREF }?,
    attribute queryBinding { non-empty-string }?,
    (foreign
     & inclusion*
     & (title?, ns*, p*, let*, phase*, pattern+, p*, diagnostics?, properties?))
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Part 3fixedA change has been made to the document which addresses this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions