Subject: [xsl] XSL Transformation Question From: "Eric Fleming" <coolburn77@xxxxxxxxxxx> Date: Fri, 20 Feb 2004 14:05:19 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: Troubleshooting a sort, Grant, Kathryn --- S | Thread | Re: [xsl] XSL Transformation Questi, Jeni Tennison |
[xsl] RE: Troubleshooting a sort, Grant, Kathryn --- S | Date | [xsl] #Please Help: Nested conditio, Matthias Fischer |
Month |