Si8
Si8

Reputation: 9225

how to make an xsl:value-of bold

I have the following XSL code:

          <td class="info center">
            <div class="infoBoldBlue"><xsl:value-of select="office" /></div>
            <xsl:value-of select="Address/Address1" /><br />
            <xsl:if test="Address/Address2 != ''">
                <xsl:value-of select="Address/Address2" />
              <br />
            </xsl:if>
            <xsl:value-of select="Address/City" />, <xsl:value-of select="Address/State" />
            <xsl:text> </xsl:text>
            <xsl:value-of select="Address/zip" /><br />
            <xsl:value-of select="Address/phone" />
          </td>

I am trying to make the <xsl:value-of select="Address/Address2" /> bold. How can I do that?

I tried adding a span and it didn't work.

Upvotes: 1

Views: 2147

Answers (1)

hutchonoid
hutchonoid

Reputation: 33306

Just use a strong tag around it as follows:

<td class="info center">
            <div class="infoBoldBlue"><xsl:value-of select="office" /></div>
            <xsl:value-of select="Address/Address1" /><br />
            <xsl:if test="Address/Address2 != ''">
              <strong>
                <xsl:value-of select="Address/Address2" />
              </strong>
              <br />
            </xsl:if>
            <xsl:value-of select="Address/City" />, <xsl:value-of select="Address/State" />
            <xsl:text> </xsl:text>
            <xsl:value-of select="Address/zip" /><br />
            <xsl:value-of select="Address/phone" />
</td>

Upvotes: 1

Related Questions