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

1851 Make ?variety optional; explain namespace-sensitive #1878

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make ?variety optional; explain namespace-sensitive
michaelhkay committed Mar 14, 2025
commit c3daf61a7cb96d3dc0746421d5f62a7b39a0bb1c
9 changes: 5 additions & 4 deletions specifications/xpath-functions-40/src/function-catalog.xml
Original file line number Diff line number Diff line change
@@ -131,14 +131,16 @@
</fos:meaning>
</fos:field>
<fos:field name="variety"
required="true"
required="false"
type='enum("atomic", "list", "union", "empty", "simple", "element-only", "mixed")'>
<fos:meaning>
<p>For a simple type, one of <code>"atomic"</code>, <code>"list"</code>, or <code>"union"</code>, corresponding to the
<xtermref spec="XS11-1" ref="std-variety">{variety}</xtermref> of the simple type in the XSD component model. For a complex type, one of
<code>"empty"</code>, <code>"simple"</code>, <code>"element-only"</code>, or <code>"mixed"</code>,
corresponding to the <xtermref spec="XS11-1" ref="ctd-content_type">{content type}</xtermref>.<xtermref spec="XS11-1" ref="ct-variety">{variety}</xtermref>
of the complex type in the XSD component model.</p>
of the complex type in the XSD component model. The value is absent in cases where the
<xtermref spec="XS11-1" ref="std-variety">{variety}</xtermref> in the XSD component model is absent, for example
for the type <code>xs:anySimpleType</code>.</p>
</fos:meaning>
</fos:field>
<fos:field name="members" required="false" type="fn() as schema-type-record*">
@@ -178,8 +180,7 @@
anonymous types, and for types that might not be present in the dynamic context.
The field is absent for complex types and for the abstract types <code>xs:anyAtomicType</code>,
<code>xs:anySimpleType</code>, and
<code>xs:NOTATION</code>. It is also absent for all namespace-sensitive types, that is, types
derived from <code>xs:QName</code> or <code>xs:NOTATION</code>.
<code>xs:NOTATION</code>. It is also absent for all <xtermref spec="XP40" ref="dt-namespace-sensitive"/> types.
</p>
</fos:meaning>
</fos:field>