Why can't I get all <a> or <img> tags inside a relation when I use the
above template?
Perhaps because of namespace declarations that you haven't shown us.
Michael Kay
http://www.saxonica.com/
<my-relation name="relatedImages" type="image" multi="yes">
<td width="75%">
<ul>
<li>
<a
href="../images/autobahnraser.jpg">autobahnraser.jpg</a>
<br />
</li>
</ul>
</td>
</my-relation>
In my template where I match all <my-????> tags I have:
<xsl:when test="name(.) =
'my-relation'">
<xsl:for-each
select="descendant-or-self::a">
<foo url="{(_at_)url}"/>
</xsl:for-each>
<xsl:for-each
select="descendant-or-self::img">
<bar src="{(_at_)src}"/>
</xsl:for-each>
</xsl:when>
And althoug there are <a> and <img> in my input XML I don't get any
<foo> and <bar> in the output. What am I doing wrong?
R.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--