<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:param name="value"/>
<!-- Template to match the root element -->
<xsl:template match="/qhost">
<!-- Preserve the qhost wrapper in the output -->
<!-- Match <host> elements with the specific <resourcevalue> child -->
<xsl:for-each select="host[resourcevalue[@name='x86-64-v' and starts-with(text(), $value)]]">
<!-- Output the value of the 'name' attribute -->
<xsl:value-of select="@name"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
we can find all execution hosts with x86-64-v=2 as:
With XSLT stylesheet
qhost_filter_x86-64-v.xsl
:we can find all execution hosts with
x86-64-v=2
as: