I'm expecting to see hello
in the output, but not getting it.
xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:if test="//target">
<xsl:value-of select="@field"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="callwithparms - Copy.xslt"?>
<xml>
<partOne>
<target field="hello"/>
</partOne>
<partTwo>
<number input="2" find="hello" />
<number input="2" find="world" />
</partTwo>
</xml>