Loading TOC...

MarkLogic 10 Product Documentation
sc:particles

sc:particles(
   [$arg as schema-component()]
) as schema-particle()*

Summary

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.

Example

declare namespace th="http://marklogic.com/xdmp/thesaurus";
xdmp:describe(
<th:thesaurus>
  <th:entry><th:term>dog</th:term>
     <th:synonym><th:term>canine</th:term></th:synonym>
  </th:entry>
</th:thesaurus>/th:entry/element()[2]/sc:type()!sc:particles())
  =>
"(th:term&th:qualifiers?&th:scope-notes?&th:part-of-speech?)"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.