sc.particles( [arg as schemaComponent()] ) as Sequence
Returns the particles of the schema component, if any. The context item is used if no argument is given.
Parameters | |
---|---|
arg | The item whose particles are to be returned. |
xdmp.describe(fn.head(xdmp.unquote( '<th:thesaurus xmlns:th="http://marklogic.com/xdmp/thesaurus">\n\ <th:entry><th:term>dog</th:term>\n\ <th:synonym><th:term>canine</th:term></th:synonym>\n\ </th:entry>\n\ </th:thesaurus>')).root.xpath( "/th:thesaurus/th:entry/element()[2]/sc:type()!sc:particles()", {th:"http://marklogic.com/xdmp/thesaurus"})); => ({http://marklogic.com/xdmp/thesaurus}term &{http://marklogic.com/xdmp/thesaurus}qualifiers? &{http://marklogic.com/xdmp/thesaurus}scope-notes? &{http://marklogic.com/xdmp/thesaurus}part-of-speech?)