Loading TOC...

sc:attributes

sc:attributes(
   [$arg as schema-component()]
) as attribute-decl()*

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

declare namespace xh="http://www.w3.org/1999/xhtml";

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Example</title></head>
<body><p><a id="a1">Example</a></p></body>
</html>/sc:element-decl()!sc:attributes()
  =>
@version
@xml:lang

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