Subject: Re: [xsl] for-each question From: Ronald <ronald@xxxxxxxxxxx> Date: Thu, 26 Apr 2001 13:45:27 +0100 |
You're not specifying you want both documents to be generated. This is probably called the "xsl:for-each trap".
Maybe you can try to do without the xsl for-each? xsl:value-of only gives you the first value!
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] for-each question, Francis Norton | Thread | [xsl] XPath and XLink for beginners, Koray Berk |
Re: [xsl] Transitive closure for XP, Francis Norton | Date | [xsl] How to test if a node is a de, Sebastian Schirmer |
Month |