Пример #1
0
				def isTopNode(elem) :
					return definesNode(elem) and not lib.hasAncestorElement(elem.parentNode, definesNode)
Пример #2
0
		def isNonExec(elem) :
			return lib.hasAncestorElement(
				elem, lambda x: x.getAttribute("xml:id") == "non-executable" )
Пример #3
0
		def isNestedNode(elem) :
			return lib.hasAncestorElement(
				elem, lambda x: x.getAttribute("xml:id").find("node.") == 0 )
Пример #4
0
	def isFamily(node) :
		return lib.hasAncestorElement(
			node, lambda x: x.getAttribute("xml:id") == "family-node-types" )