Subject: Re: Questions on the new XSL spec (section 2.6) From: Steve Dahl <sdahl@xxxxxxxxxxx> Date: Thu, 31 Dec 1998 13:29:23 -0500 |
James Clark wrote: > ... > 2.6.2 says: > > "[2] MatchExpr ::= SelectExpr > > A match pattern must match the production for MatchExpr; a node matches > the match pattern if the MatchExpr returns true when evaluated > with that node as context. > > The result of the MatchExpr is true if, for any node in the document > that contains the context of the MatchExpr, the result of evaluating the > SelectExpr with that node as context contains the context of the > MatchExpr. Otherwise the result is false." Ah. Thanks. Rereading this passage clarified a lot. When it says that the node used as context of the SelectExpr contains the node used as context of the MatchExpr, does that allow the two context nodes to be the same node? If so, "." would match all nodes, but if not, "." would never match anything. So, which way should this go? But in any case, it is never necessary to test the SelectExpr against subNodes of the context of the MatchExpr, nor against siblings of the context of the MatchExpr. If such nodes were tested, the resulting select might contain the context of the MatchExpr, but the requirement that they contain the context of the MatchExpr excludes them from consideration. Is that the intent of the "containment" requirement? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Questions on the new XSL spec (, James Clark | Thread | RE: Questions on the new XSL spec (, David Schach |
Re: Template Rule Conflict Resoluti, Tyler Baker | Date | |
Month |