T
Tjerk Wolterink
I have xml like this:
<data>
<item><type>a</type></item>
<item><type>a</type></item>
<item><type>b</type></item>
<item><type>b</type></item>
<item><type>b</type></item>
<item><type>c</type></item>
</data>
I want an xsl document that transforms this in this:
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
</ul>
My xsl:
<xsl:template match="data">
<uL>
<xsl:for-each select="item">
<xsl:if test=" the type of the item before this item is different">
<li><xsl:value-of select="type"/></li>
</xsl:if>
</xsl:for-each>
</ul>
</xs:template>
pleaze help
<data>
<item><type>a</type></item>
<item><type>a</type></item>
<item><type>b</type></item>
<item><type>b</type></item>
<item><type>b</type></item>
<item><type>c</type></item>
</data>
I want an xsl document that transforms this in this:
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
</ul>
My xsl:
<xsl:template match="data">
<uL>
<xsl:for-each select="item">
<xsl:if test=" the type of the item before this item is different">
<li><xsl:value-of select="type"/></li>
</xsl:if>
</xsl:for-each>
</ul>
</xs:template>
pleaze help