<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="item">
<div class="discussion">
<div class="{./discussion_class}">
<xsl:value-of select="./team_member_name"/><br/><xsl:value-of select="./comment_date"/><br/>
<xsl:value-of select="./comment"/>
</div>
</div>
</xsl:template>
</xsl:stylesheet>
.discussion{font-size:12px;font-color:#000000;margin:5px;}
.discussion.my_comment{width:85%;color:#687899;margin:5px;float:left;}
.discussion.others_comment{width:85%;color:#DDDDDD;margin:5px;float:right;}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Open in new window