part of XML from the display using xslt. please suggest me here.
Code:
<rss version="2.0">
<channel>
<title>CCH Wall Street</title>
<link>http://cp.llesiant.com/Delivery/RSSContentSet.asp?id=89C66C75-6E53-4F84-B778-CC7F5157D57F&n=3&days=7</link>
<description>There are 139 items available.</description>
<language>en-us</language>
<cf:treatAs xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">list</cf:treatAs>
<item>
<title>Barclays, former trader settle SEC charges in NYC for over $10.9M</title>
<link>http://cp.llesiant.com/Delivery/ExternalContent.asp?contentId=225969440000000187</link>
<description>NEW YORK (AP) -- Barclays Bank PLC has agreed to pay $10.9 million and a former trader for the bank agreed to pay $750,000 to settle charges that they engaged in securities fraud through a pattern...</description>
<source url="/Delivery/ExternalContent.asp?contentId=225969440000000187">NY Metro</source>
<pubDate>30 May 2007 19:19:00 UT</pubDate>
<guid isPermaLink="false">225969440000000187</guid>
</item>
<item>
<title>New CCH White Paper Covers SEC, PCAOB Internal Controls Guidance</title>
<link>http://cp.llesiant.com/Delivery/ExternalContent.asp?contentId=225969400000000111</link>
<description>CCH Securities Law Analyst and Author Available for Comment RIVERWOODS, Ill., May 30 /PRNewswire/ -- CCH principal analyst and leading author on securities law, Jim Hamilton, JD, LLM, has released...</description>
<source url="/Delivery/ExternalContent.asp?contentId=225969400000000111">KCAU-TV</source>
<pubDate>30 May 2007 19:09:00 UT</pubDate>
<guid isPermaLink="false">225969400000000111</guid>
</item>
<item>
<title>Investor Alert From Cauley Bowman Carney & Williams, PLLC: Update on Proposed Acquisition of Bradley Pharmaceu</title>
<link>http://cp.llesiant.com/Delivery/ExternalContent.asp?contentId=225969176000000147</link>
<description>/PRNewswire/ -- Cauley Bowman Carney & Williams, PLLC announces an investigation into the proposed acquisition of Bradley Pharmaceuticals, Inc. ('Bradley'). On May 29, 2007, Bradley announced...</description>
<source url="/Delivery/ExternalContent.asp?contentId=225969176000000147">Pharma Live</source>
<pubDate>30 May 2007 18:14:00 UT</pubDate>
<guid isPermaLink="false">225969176000000147</guid>
</item>
</channel>
</rss>
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
You create a template that matches what you want to hide and just have the template do nothing.
In this case I create a template that matches all of the children of the channel element. I expect that you have another template that matches the item elements. That template will be more specific and override the other and so the item elements will be shown and everything else hidden.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
<!-- create link for newsfeed -->
<xsl:element name="div">
<xsl:attribute name="id">newsfeed_link</xsl:attribute>
<xsl:element name="a">
<xsl:attribute name="class">newsfeedlink</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>javascriptpenNewsfeedLink('</xsl:text>
<xsl:value-of select="link"/>
<xsl:text>')</xsl:text>
</xsl:attribute>
<!-- show newsfeed title-->
<xsl:value-of select="title"/>
</xsl:element>
</xsl:element>
<!-- show the description of newsfeed -->
<xsl:element name="div">
<xsl:attribute name="id">newsfeed_description</xsl:attribute>
<xsl:value-of select="description"/>
</xsl:element>
<!-- show the publication date of newsfeed -->
<xsl:element name="div">
<xsl:attribute name="id">newsfeed_published_date</xsl:attribute>
<xsl:value-of select="pubDate"/>
</xsl:element>
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks