예제 #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" )