Matching an Element by its Children
Elements can also be matched according to their child elements (the elements they contain).
The syntax for this is
<xsl:template match="element-name[child-name]">
For example, the following matches all the line elements that have a stress element child.:
<xsl:template match="line[stress]">