Loading TOC...

sc.attributes

sc.attributes(
   [$arg as schemaComponent()]
) as Sequence

Summary

Returns the attribute declarations of the schema component, if any. The context item is used if no argument is given.

Parameters
$arg The item whose attribute declarations are to be returned.

Example

xdmp.describe(fn.head(xdmp.unquote(
  '<html xmlns="http://www.w3.org/1999/xhtml">\n\
<head><title>Example</title></head>\n\
<body><p><a id="a1">Example</a></p></body>\n\
</html>')).root.xpath(
  "/sc:element-decl()!sc:attributes()"));
=> Sequence("@version", "@xml:lang")

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy