i am not being able to render a bulleted list through xml/xsl transformation. I want the output to be a list with round bullet points.
here is the xml file –
<bulletList name="list">
<item>• Item1</item>
<item>• Item2</item>
<item>• Item3</item>
<item>• Item4</item>
<item>• Item5</item>
</bulletList>
here is the corresponding XSL –
<div class="sansIcon">
<xsl:apply-templates select="content[@name='con1']" mode="impl_expandContent"/>
<ul>
<xsl:apply-templates select="bulletList[@name='list']" mode="impl_expandContent">
<xsl:for-each select="item">
<li><xsl:value-of /></li>
</xsl:for-each>
</xsl:apply-templates>
</ul>
</div>
Please help! Thanks in advance.
Here change
<xsl:value-of />to<xsl:value-of select="text()"/>Do this way, rather than using apply-templates for bulletList
EDIT:
For this type of XML,
To make Item1, Item2, …. to be bold. Use
substring-before()andsubstring-after()