Using XSLT 1.0
Is it possible to filter many to many attributes, i mean as below example: "../../../../fieldmap/field[@name" i.e. more then 1 elements as fieldmap containing "field/@name" attribute are exists and it is comparing with definition/@title and there too more then one definition element exists containing @title.
EXAMPLE:
<xsl:for-each select="../../../../fieldmaps/field[@name=../destination/@title]">
Can you please suggest me how it could possible to achieve -- if field containing @name existed in any of defination/@title then only those records should be process within for-each loop? (as now, it looks, it will just compare with first @title attribute and consider all fieldmaps/field/@name attributes)
Thanks
You can achieve that using a variable:
Here you have a simplified example:
INPUT:
TEMPLATE:
OUTPUT:
I hope this helps!