xsl-list
[Top] [All Lists]

RE: Newbie getting desperate

2006-02-25 08:50:23
<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>
--~--



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