Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
sc.schema( [$arg as String] ) as schemaRoot()?
Returns the root schema of the item. The context item is used if no argument is given.
Parameters | |
---|---|
$arg | The item whose associated schema is to be returned. |
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:entry/sc:schema()!sc:component-property("schema-location")', {th:"http://marklogic.com/xdmp/thesaurus"}); => "thesaurus.xsd"
Comments