File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
hide from the display
bobz
Greenhorn
Joined: Aug 16, 2006
Posts: 10
posted
Jun 01, 2007 00:19:00
0
i want to hide this
Code:
<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>
part of XML from the display using xslt. please suggest me here.
XML file:
<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>
XSLT :
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- /* ****************************************************************************** * Project : CRN on EIP * Copyright : WOLTERS KLUWER * Company : Contour Technology * Version : $Id: newsfeed.xsl,v 1.4 2005/06/21 18:43:14 smaleszewski Exp $ * ****************************************************************************** */ --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1"/> <xsl:template match="/"> <link rel="stylesheet" href="/ws-portal/css/newsfeed.css" type="text/css" /> <script language="javascript" src="/ws-portal/jscript/newsfeed.js"></script> <xsl:element name="newsfeed_container"> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="item"> <!-- 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>javascript:openNewsfeedLink('</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> </xsl:template> <xsl:template match="docHits"> <!-- nop --> </xsl:template> </xsl:stylesheet>
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Jun 01, 2007 00:36:00
0
If you want your questions answered, fix your display name.
I agree. Here's the link:
http://jrebel.com/download
subject: hide from the display
Similar Threads
How to add a new attribute via xsl in an existing xml structure
XSLT & XPath tag in tag?
A Beginner's Question
XSL Problem
Tool to build ANT or MAVEN scripts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter