Re: [xsl] XSL Transformation Question

Subject: Re: [xsl] XSL Transformation Question
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 20 Feb 2004 20:42:40 +0100
Eric Fleming wrote:
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.
...
<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" />

The img and a elements are nested in a description element. Your code selects img and a elements which are immediate children of the item element. I suspect you should just try <xsl:apply-templates/> there.

J.Pietschmann

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


Current Thread