I am trying to use a variable that has xpath in for-each. But it is giving me an error that Expression must evaluate to a node-set.
NodeName is defined as
<xsl:variable name="NodeName" select="name(.)"/>
<xsl:variable name="SyncPath"
select="concat('/combinedxml/com.csc_PolicySyncRs/',$NodeName)"/>
and here is for-each loop
<xsl:for-each select="$SyncPath/*">