Skip to content

Commit

Permalink
Drop named item types, refine named record types, esp in XSLT
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Jan 6, 2025
1 parent 4eaeba1 commit 5a96b57
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 177 deletions.
6 changes: 3 additions & 3 deletions specifications/grammar-40/xpath-grammar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ VersionDecl ::= "xquery" (("encoding" StringLiteral) | ("version" StringLiteral
<g:choice>
<g:ref name="VarDecl"/>
<g:ref name="FunctionDecl"/>
<g:ref name="ItemTypeDecl"/>
<!--<g:ref name="ItemTypeDecl"/>-->
<g:ref name="NamedRecordTypeDecl"/>
</g:choice>
</g:production>
Expand Down Expand Up @@ -762,12 +762,12 @@ VersionDecl ::= "xquery" (("encoding" StringLiteral) | ("version" StringLiteral
<g:ref name="Rbrace"/>
</g:production>

<g:production name="ItemTypeDecl" if="xquery40">
<!--<g:production name="ItemTypeDecl" if="xquery40">
<g:string>type</g:string>
<g:ref name="EQName"/>
<g:string>as</g:string>
<g:ref name="ItemType"/>
</g:production>
</g:production>-->

<g:production name="NamedRecordTypeDecl" if="xquery40">
<g:string>record</g:string>
Expand Down
4 changes: 2 additions & 2 deletions specifications/xquery-40/src/errors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@
<p>It is a <termref def="dt-static-error">static error</termref> if an <termref
def="dt-expanded-qname"/> used as an <nt def="ItemType"/>
in a <nt def="SequenceType"/> is not defined
in the <termref def="dt-static-context"/> either as a <termref def="dt-named-item-type"/>
in the <termref def="dt-in-scope-named-item-types"/>,
in the <termref def="dt-static-context"/> either as a <termref def="dt-named-record-type"/>
in the <termref def="dt-in-scope-named-record-types"/>,
or as a <termref def="dt-generalized-atomic-type"/>
in the <termref def="dt-is-types"/>.</p>
</error>
Expand Down
Loading

0 comments on commit 5a96b57

Please sign in to comment.