xsl-list
[Top] [All Lists]

why is "(chapter//footnote)[1]" illegal?

2003-08-23 06:08:34

  boning up on my predicates and patterns, i'm reading
kay, p. 443, which states:

  "(chapter//footnote)[1] is not a valid pattern.  (Why not?
No good reason, it's just that the spec doesn't allow it."

  but on p. 408, there is an explanation of the (apparently
acceptable) path expression "(chapter/para)[1]".  

  so is it just the difference between using the child axis
and the descendant-or-self axis?  it's not obvious to me
why the first should be illegal while the second is legal.

rday


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



<Prev in Thread] Current Thread [Next in Thread>