PMH4514
asked on
XSL Transformations
I'm using XSL and XML to render DB content. My first attached snippet is the XSL, the 2nd is the CSS values..
I'm using this to render a chat/discussion. It basically gives me what I want like below:
My Name
Date
Comments......
Your Name
Date
Comments......
My Name
Date
Comments......
Your Name
Date
Comments......
etc..
My question is, how do I make "My Name" and "Your Name" fields render in bold?
Thanks
I'm using this to render a chat/discussion. It basically gives me what I want like below:
My Name
Date
Comments......
Your Name
Date
Comments......
My Name
Date
Comments......
Your Name
Date
Comments......
etc..
My question is, how do I make "My Name" and "Your Name" fields render in bold?
Thanks
<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;}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
this is not about xslt, but about html. In xslt you can use any html tag you want.
this is not about xslt, but about html. In xslt you can use any html tag you want.
ASKER
thanks!
ASKER
thank you