Complaring Mulitple Element's text with multiple Elements text in xslt -
input xml :
<a> <b> <c>1</c> <c>2</c> </b> <d> <c>2</c> <c>3</c> </d> </a>
from above xml want o/p <c>2</c>
it not clear criteria outputting single element. want group , output groups more 1 item? in case
<xsl:template match="/"> <xsl:for-each-group select="descendant::c" group-by="."> <xsl:if test="current-group()[2]"> <xsl:copy-of select="."/> </xsl:if> </xsl:for-each-group> </xsl:template>
might suffice. if not explain in more detail why output should posted.
Comments
Post a Comment