Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RELAX NG grammar for XSLT #1585

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Update RELAX NG grammar for XSLT #1585

merged 1 commit into from
Nov 19, 2024

Conversation

ndw
Copy link
Contributor

@ndw ndw commented Nov 18, 2024

This PR updates the RELAX NG grammar to be (more) consistent with the XSD grammar (and consequently more correct for XSLT 4.0)

  1. Relaxes the definition of QNames so that prefixes declared with fixed-namespaces can be supported
  2. Adds the fixed-namespaces attribute to xsl:stylesheet, xsl:transform, and xsl:package
  3. Adds the xsl:switch element
  4. Adds the xsl:array and xsl:array-member elements
  5. Adds shallow-copy-all to the possible values for on-no-match
  6. Adds separator to xsl:apply-templates
  7. Removes select attribute from xsl:copy
  8. Adds as attribute to xsl:sequence
  9. Updated the declarations for xsl:accumulator-rule, xsl:array, xsl:array-member, xsl:attribute, xsl:catch, xsl:comment, xsl:map-entry, xsl:matching-substring, xsl:message, xsl:namespace, xsl:non-matching-substring, xsl:on-empty, xsl:on-non-empty, xsl:otherwise, xsl:param, xsl:processing-instruction, xsl:sequence, xsl:sort, xsl:value-of, xsl:variable, xsl:when, and xsl:with-param so that they accept either a select attribute or a sequence constructor

More changes may also be required. A comprehensive comparision of the RNC and XSD schemas is needed, #1584

@ndw ndw added the Propose Merge without Discussion Change is editorial or minor label Nov 18, 2024
@ndw
Copy link
Contributor Author

ndw commented Nov 19, 2024

The CG agreed to merge this PR without discussion at meeting 099.

@ndw ndw merged commit c558e56 into qt4cg:master Nov 19, 2024
3 checks passed
@ndw ndw deleted the update-rng branch November 19, 2024 17:13
@michaelhkay michaelhkay added XSLT An issue related to XSLT Completed PR has been applied, tests written and tagged, no further action needed and removed Propose Merge without Discussion Change is editorial or minor labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed PR has been applied, tests written and tagged, no further action needed XSLT An issue related to XSLT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants