[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL Transformation Question

Subject: XSL Transformation Question
From: "Eric Fleming" <coolburn77@xxxxxxxxxxx>
Date: Fri, 20 Feb 2004 14:05:19 -0500
transformation question
I have a rss feed I am trying to transform, but it will not read the img and
a tags from within the description of each item. The rss feed can be found
at http://www.cssvault.com/gallery.xml. The xsl I am using to transform the
file is below, any help would be appreciated:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="channel">
		<div class="rssFeed">
			<div class="feedGeneralInfo">
				<div class="feedTitle"><a href="{link}"
title="{title}"><xsl:value-of select="title" /></a></div>
				<p class="feedDescription"><xsl:value-of
select="description" /></p>
			</div>
			<ul>
				<xsl:apply-templates select="item" />
			</ul>
		</div>
	</xsl:template>
	<xsl:template match="item">
		<li>
			<div class="itemTitle"><a href="{link}"
title="{title}"><xsl:value-of select="title" /></a></div>
			<div class="itemDescription"><xsl:apply-templates
select="img" /><xsl:apply-templates select="a" /><xsl:value-of
select="description" /></div>
		</li>
	</xsl:template>
	<xsl:template match="img">
		<div class="itemDescriptionImage"><img src="{src}" /></div>
	</xsl:template>
	<xsl:template match="a">
		<div class="itemDescriptionLink"><a
href="{href}"><xsl:value-of select="a" /></a></div>
	</xsl:template>
</xsl:stylesheet>

Thanks-
Eric Fleming
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.