$p2 = /

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/ true true true
/page/ true true
/sec1/
/sec1/page/
/sec1/sec1-1/
/sec1/sec1-1/page1/
/sec1/sec1-1/page2/
/sec1/sec1-1/sec1-1-1/
/sec1/sec1-1/sec1-1-1/page/
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /page/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/ true true
/page/ true
/sec1/
/sec1/page/
/sec1/sec1-1/
/sec1/sec1-1/page1/
/sec1/sec1-1/page2/
/sec1/sec1-1/sec1-1-1/
/sec1/sec1-1/sec1-1-1/page/
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true true true
/sec1/page/ true true
/sec1/sec1-1/ true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/ true
/sec1/sec1-2/page1/ true
/sec1/sec1-2/page2/ true

$p2 = /sec1/page/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true true
/sec1/page/ true
/sec1/sec1-1/ true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/ true
/sec1/sec1-2/page1/ true
/sec1/sec1-2/page2/ true

$p2 = /sec1/sec1-1/sec1-1-1/page/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/ true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/sec1-1/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/ true true true
/sec1/sec1-1/page1/ true true
/sec1/sec1-1/page2/ true true
/sec1/sec1-1/sec1-1-1/ true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/sec1-1/page1/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/ true true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/sec1-1/page2/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/ true true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true
/sec1/sec1-1/sec1-1-1/page/ true
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/sec1-1/sec1-1-1/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/ true
/sec1/sec1-1/page1/ true
/sec1/sec1-1/page2/ true
/sec1/sec1-1/sec1-1-1/ true true true
/sec1/sec1-1/sec1-1-1/page/ true true
/sec1/sec1-2/
/sec1/sec1-2/page1/
/sec1/sec1-2/page2/

$p2 = /sec1/sec1-2/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/
/sec1/sec1-1/page1/
/sec1/sec1-1/page2/
/sec1/sec1-1/sec1-1-1/
/sec1/sec1-1/sec1-1-1/page/
/sec1/sec1-2/ true true true
/sec1/sec1-2/page1/ true true
/sec1/sec1-2/page2/ true true

$p2 = /sec1/sec1-2/page1/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/
/sec1/sec1-1/page1/
/sec1/sec1-1/page2/
/sec1/sec1-1/sec1-1-1/
/sec1/sec1-1/sec1-1-1/page/
/sec1/sec1-2/ true true
/sec1/sec1-2/page1/ true
/sec1/sec1-2/page2/ true

$p2 = /sec1/sec1-2/page2/

$p1.URL $p1.InSection $p2 $p1.IsAncestor $p2 $p1.IsDescendant $p2
/
/page/
/sec1/ true
/sec1/page/ true
/sec1/sec1-1/
/sec1/sec1-1/page1/
/sec1/sec1-1/page2/
/sec1/sec1-1/sec1-1-1/
/sec1/sec1-1/sec1-1-1/page/
/sec1/sec1-2/ true true
/sec1/sec1-2/page1/ true
/sec1/sec1-2/page2/ true