[XSL-LIST Mailing List Archive Home]
Re: Testing the Content of the Next Node
Subject: Re: Testing the Content of the Next Node|
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 9 Mar 2000 22:35:26 GMT
> 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 ,/)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list