Attr.isId

Attr.isId as Boolean

Summary

Whether this is an ID attribute.

Usage Notes

An ID attribute is defined as one that has a schema declaration of type xs:ID (or a subtype of xs:ID). The function fn.id takes a broader view: any attribute named xml:ID is considered an ID attribute.

Example

cts.doc("example.xml").getElementById("ex1").
  getAttribute("ID").isID
Powered by MarkLogic Server | Terms of Use | Privacy Policy