This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

for-each question


I have the following xml:
<eventsCalendar>
   <eventRecord>
                <eventID>1</eventID>>
                ----
                <listDoc>
                  <document href="C:\events1.doc">agenda.doc</document>
                  <document href="C:\events2.doc">conference.doc</document>
                </listDoc>
     </eventRecord>
----
</eventsCalendar>

and the following xsl:
The parameter was set earlier
-------
 <td colspan="3" width="363">
	    <xsl:for-each
select="/eventsCalendar/eventRecord[eventID=$neweventID]/listDoc/">
            <font face="Arial, Helvetica, sans-serif" color="#000000"
size="1">
		        <a>
				<xsl:attribute name="href"><xsl:value-of
select="document/@href"/></xsl:attribute>
				<xsl:value-of select="document"/>
			</a>
                    </font>
             </xsl:for-each>
             </td>

-----------
Output:
Just a link to agenda.doc is returned and not both documents. Any
suggestions?

Tanz



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]