Loading TOC...

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

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