[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Testing the Content of the Next Node

Subject: RE: Testing the Content of the Next Node
From: Stewart Unwin <sunwin@xxxxxxxxxx>
Date: Fri, 10 Mar 2000 10:43:38 +1100
RE: Testing the Content of the Next Node
Thanks David - works like a charm!

Stewart

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, March 10, 2000 9:35 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: Testing the Content of the Next Node


> i.e., if the first character in the following element "body" is "/"

here you wisely quoted the /

>   <xsl:if test="starts-with(following-sibling::body,/)">

here you made your system work hard:-)

starts-with takes xpath expressions as argumenst and evaluates
them as strings, the first argument will be the character content
of the next body element, but the second argument is the string value
of / which is all the characters in your input document.

Try ,'/')  rather than ,/)

David
 


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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.