I guess my subject line is both a newbie and a language issue. I simply din't
know how to put it. I haven't learnt the terminology yet. These childs and
ancestors ...
Of course you solved my problem right away. Many thanks.
-Anders
----- Original Message -----
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Newbie getting desperate
Date: Sat, 25 Feb 2006 15:50:23 -0000
<xsl:for-each select="//data">
<tr>
<td><xsl:value-of
select="//field[(_at_)tag='123']/subfield[(_at_)id='a']"/></td>
//x selects every x in the document. You only want the field that is an
immediate child of the current data element, which is:
<xsl:for-each select="//data">
<tr>
<td><xsl:value-of
select="field[(_at_)tag='123']/subfield[(_at_)id='a']"/></td>
By the way, we don't mind simple questions on this list, but we do like to
have meaningful subject lines.
Michael Kay
http://www.saxonica.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>
--~--
--
_______________________________________________
Search for businesses by name, location, or phone number. -Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
--~------------------------------------------------------------------
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>
--~--