xsl-list
[Top] [All Lists]

Re: [xsl] Identifying sets of child elements that meet a certain condition

2008-02-11 08:59:53
Mark Peters wrote:
Hi Michael,

Is this what you're suggesting?

   <xsl:template match="/">
           <topic>
                  <ul>
                       <xsl:for-each
select="/data/component[not(attributeList/attribute/@name='a')]">
                           <xsl:sort select="@name"/>
                              <li>
                                  <xsl:value-of select="@name"/>
                              </li>
                       </xsl:for-each>
                   </ul>
            </topic>
       </topic>
   </xsl:template>

I tried that, but the results included no list items.


There are two "</topic>" tags there - this is not legal XML. Which processor are you using? It really should have thrown an error rather than just producing blank output...

        # r

--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan(_dot_)klyne(_at_)groupbc(_dot_)com
www.groupbc.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>
--~--