[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: matching positional nodes
Hi Guys, Thanks for the links and suggestions. Everythings working great now. Cheers, Spencer On 7/7/05, Joris Gillis <roac@xxxxxxxxxx> wrote: > Hi, > > Tempore 18:48:48, die 07/07/2005 AD, hinc in > xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Spencer Tickner > <spencertickner@xxxxxxxxx>: > > > <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)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|