This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xpath doubt


> 	<xsl:when test="$filterType='new'">
> 		<xsl:apply-templates select="b[//c/@id='new' or
> //d/@id='new' ]"/>
> 	</xsl:when>
>

//c and //d are absolute path expressions, they select from the root of the
document not from the context node. It's almost invariably wrong to select
from the root within a predicate.

Mike Kay
Software AG


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]