xsl-list
[Top] [All Lists]

Re: XSL Transformation Question

2004-02-20 12:42:40
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



<Prev in Thread] Current Thread [Next in Thread>