<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sc.componentProperty.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sc.componentProperty</api:function-name><api:suggest>sc.componentproperty</api:suggest><api:suggest>sc</api:suggest><api:suggest>componentproperty</api:suggest><api:function-link mode="xquery" fullname="sc:component-property">/apidoc/8.0/sc:component-property.xml</api:function-link><api:function mode="javascript" name="componentProperty" type="builtin" lib="sc" category="SchemaBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sc" namespace="http://marklogic.com/xdmp/schema-components" fullname="sc.componentProperty"><api:summary>
  <p xmlns="http://www.w3.org/1999/xhtml">Returns the named property of the schema component.
  The context item is used for the second argument if it is not given.</p>
  <p xmlns="http://www.w3.org/1999/xhtml">Properties include:</p>
  <dl xmlns="http://www.w3.org/1999/xhtml">
  <dt>name</dt><dd>Same as sc:name</dd>
  <dt>type</dt><dd>Same as sc:type</dd>
  <dt>complex-type</dt><dd>Same as sc:complex-type</dd>
  <dt>simple-type</dt><dd>Same as sc:simple-type</dd>
  <dt>element-decl</dt><dd>Same as sc:element-decl</dd>
  <dt>attribute-decl</dt><dd>Same as sc:attribute-decl</dd>
  <dt>schema</dt><dd>Same as sc:schema</dd>
  <dt>annotations</dt><dd>Same as sc:annotations</dd>
  <dt>facets</dt><dd>Same as sc:facets</dd>
  <dt>attributes</dt><dd>Same as sc:attributes</dd>
  <dt>particles</dt><dd>Same as sc:particles</dd>
  <dt>attribute-groups</dt><dd>The attribute groups of the schema</dd>
  <dt>model-groups</dt><dd>The model groups of the schema</dd>
  <dt>notations</dt><dd>The notations of the schema</dd>
  <dt>types</dt><dd>The types of the schema</dd>
  <dt>elements</dt><dd>The element declarations of the schema</dd>
  <dt>attribute-wildcard</dt><dd>The attribute wildcard on the type or in
    the attribute group</dd>
  <dt>identity-constraints</dt><dd>The identity constraints on the element
    declaration or schema</dd>
  <dt>scope</dt><dd>The scope of the element or attribute declaration</dd>
  <dt>fixed</dt><dd>The fixed value of the element or attribute declaration
    or whether a facet is fixed</dd>
  <dt>default</dt><dd>The default value of the element or attribute
    declaration</dd>
  <dt>substitution-group</dt><dd>The element declaration serving as the
    substitution group head of the element declaration</dd>
  <dt>nillable</dt><dd>Whether the element declaration is declared as
    nillable</dd>
  <dt>abstract</dt><dd>Whether the element declaration or type is declared as
    abstract</dd>
  <dt>block-extension</dt><dd>Whether the element declaration or complex type
    is declared as blocking extensions</dd>
  <dt>block-restriction</dt><dd>Whether the element declaration or complex type
    is declared as blocking restrictions</dd>
  <dt>block-substitution</dt><dd>Whether the element declaration is declared as
    blocking substitutions</dd>
  <dt>final-extension</dt><dd>Whether the element declaration or complex type is
    declared as final for extensions</dd>
  <dt>final-restriction</dt><dd>Whether the element declaration or complex type
    is declared as final for restrictions</dd>
  <dt>variety</dt><dd>The variety of the simple type (atomic, list, or
    union)</dd>
  <dt>base</dt><dd>The base type of the type</dd>
  <dt>primitive</dt><dd>The primitive type of the simple type</dd>
  <dt>item-type</dt><dd>The item type of the list simple type</dd>
  <dt>member-types</dt><dd>The member types of the union simple type</dd>
  <dt>ordered</dt><dd>The ordering of the simple type</dd>
  <dt>numeric</dt><dd>Whether the simple type is numeric</dd>
  <dt>finite</dt><dd>Whether the simple type is finite</dd>
  <dt>bounded</dt><dd>Whether the simple type is bounded</dd>
  <dt>final-list</dt><dd>Whether the simple type is declared as final
    for lists</dd>
  <dt>final-union</dt><dd>Whether the simple type is declared as final
    for unions</dd>
  <dt>final-restriction</dt><dd>Whether the simple type is declared as final
    for restrictions</dd>
  <dt>derivation-method</dt><dd>The derivation method of the complex type
    (extension, restriction)</dd>
  <dt>content-type</dt><dd>The kind of content type of the complex type
    (empty, simple, element-only, mixed)</dd>
  <dt>min-occurs</dt><dd>The declared minimum occurrences of the particle</dd>
  <dt>max-occurs</dt><dd>The declared maximum occurrences of the particle</dd>
  <dt>process-contents</dt><dd>What processing is declared for the wildcard
    (strict, lax, skip)</dd>
  <dt>namespaces</dt><dd>What namespaces the wildcard references</dd>
  <dt>value</dt><dd>The value of the facet</dd>
  <dt>category</dt><dd>The kind of identity constraint (key, unique, keyref)</dd>
  <dt>referenced-key</dt><dd>The key referenced by the keyref</dd>
  <dt>selector</dt><dd>The selector path in the identity constraint</dd>
  <dt>fields</dt><dd>The field paths in the identity constraint</dd>
  <dt>system</dt><dd>The notation's system identifier</dd>
  <dt>public</dt><dd>The notation's public identifier</dd>
  <dt>version</dt><dd>The schema's version</dd>
  <dt>schema-location</dt><dd>The schema's location</dd>
  </dl>
</api:summary><api:params><api:param name="propname" type="xs:string"><api:param-description>
     The name of the component property to return.
  </api:param-description><api:param-name>propname</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="arg" type="schema-component()" optional="true"><api:param-description>
     The component whose associated schema is to be returned.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>schemaComponent()</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.unquote('&lt;th:thesaurus xmlns:th="http://marklogic.com/xdmp/thesaurus"&gt;\n\
  &lt;th:entry&gt;&lt;th:term&gt;dog&lt;/th:term&gt;\n\
     &lt;th:synonym&gt;&lt;th:term&gt;canine&lt;/th:term&gt;&lt;/th:synonym&gt;\n\
  &lt;/th:entry&gt;\n\
&lt;/th:thesaurus&gt;').next().value.root.xpath(
  '//th:entry/sc:schema()!sc:component-property("schema-location")',
  {th:"http://marklogic.com/xdmp/thesaurus"});
=&gt;
thesaurus.xsd

</pre></api:example></api:function></api:function-page>