Hi,
I am writing xslt to create HTML by using input xml data. The input XML looks like this
ID Name Description 1 Name1 Description Something1 Name1 Description another text2 Name2 Some text2 Name2 Some text22 Name2 Some text2
Here Id is primary, where Name is unique as per ID. I want to show the output the following way
Name1 * Description Something * Description another textName2 * Some text * Some text2 * Some text2
So I want to declare a variable in XSLT and make a loop in records and store the previous record ID. IF the previous record id is same, then no need to show the name. But when I declare in the following xslt, I am getting 'The variable or parameter 'xxx' was dublicated within the same scope' error<xsl:output method ="html" media-type="text/html" encoding="iso-8859-1" />
<xsl:template match="Details">
<xsl:variable name="counter" select="0"/>
<xsl:for-each select="XMLParentNode/XMLDetailNode/XMLSubDetailNode">
<xsl:if test="$counter = 1">
<p>
<b style='text-color:red;'>
<xsl:value-of select="NAME" disable-output-
View Complete Post