Checks if the specified element has one or more children that complies with the specified Element Type(s).
This function returns the same result as the following expression:
Parameters:element.findChild(elementTypeSpec) != null
element
The element whose child is requested.If not specified, the generator context element is assumed, i.e. the same as the call:
contextElement.findChild(elementTypeSpec)
See Also:
GOMContext.contextElement
elementTypeSpec
The list of target Element Types (see "Specifying Matching Element Types" below).Each of the child elements, whose existence is requested, should comply with at least one of the target Element Types.
filterQuery
Specify an additional condition on the requested element.This should be a boolean subquery created with
BooleanQuery()
function. The subquery will be processed against each initially complying element. It must returntrue
if the element passes andfalse
if it should be ignored. The tested element is passed as the generator context element.
Returns:
true
if the element has at least one child element that complies with the specified Element Type(s);
false
otherwise (or in the caseelement == null
)
See Also:
findChild(), findChildren(), countChildren()
Tip:
You may call this function in a more method-like style, e.g.:
element.hasChild(elementTypeSpec)
${include ../../../refs/matching_ets_spec.htm}
${include ../../../refs/element_types.htm}