xsl-list
[Top] [All Lists]

Re: matching positional nodes

2005-07-07 11:13:57
Hi Guys,

Thanks for the links and suggestions. Everythings working great now.

Cheers,

Spencer

On 7/7/05, Joris Gillis <roac(_at_)pandora(_dot_)be> wrote:
Hi,

Tempore 18:48:48, die 07/07/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Spencer Tickner
<spencertickner(_at_)gmail(_dot_)com>:

<xsl:template match="section">
   <section>
    <sectionnumber><xsl:apply-templates
select="BOLD[1]"/></sectionnumber>
    <sectiontext><xsl:apply-templates
select="*[not(BOLD[1])]"/></sectiontext>
  </section>
</xsl:template>


Try 'BOLD[1]/following-sibling::node()'
This will select all nodes (elements, text or other) that follow after the
first 'BOLD' element.

Your original try '*[not(BOLD[1])]' selects all element nodes (no text
nodes) that don't have a 'BOLD' child element; not quite what you meant...



regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Spread the wiki (http://www.wikipedia.org)

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>