
sc:facets( [$arg as schema-component()] ) as schema-facet()*
Returns the facets of the component, if any. Only simple types have facets. The context item is used if no argument is given.
| Parameters | |
|---|---|
| arg | The item whose facets are to be returned. |
for $f in sc:type-named(xs:QName('xs:NCName'))!sc:facets()
return data($f)
=>
"collapse"
"[\i-[:]][\c-[:]]*"