0

I am using an RSS feed in my XML viewer web part to display a company's blog from their website. It works, but the only problem is that the title of the article is the same font size as the article itself and I would like to make it larger. Here is the XSL code that I am using now

<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes"/> <xsl:param name="TITLE"/> <xsl:template match="rss"> <div style="background:#fff; padding:0; font-size:10px;"> <xsl:for-each select="channel/item"> <a href="{link}" target="_new"><xsl:value-of select="title"/></a><br/> <xsl:value-of disable-output-escaping="yes" select="description"/><br/> </xsl:for-each> </div> </xsl:template> <xsl:template match="description"><xsl:value-of select="."/><br/></xsl:template> </xsl:stylesheet> 

Any ideas on how I can fix this?

1 Answer 1

1

Something like:

<xsl:for-each select="channel/item"> <h1><a href="{link}" target="_new"><xsl:value-of select="title"/></a></h1><br/> <xsl:value-of disable-output-escaping="yes" select="description"/><br/> </xsl:for-each> 

or

<xsl:for-each select="channel/item"> <h2><a href="{link}" target="_new"><xsl:value-of select="title"/></a></h2><br/> <xsl:value-of disable-output-escaping="yes" select="description"/><br/> </xsl:for-each> 
1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.