Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.164 and 1.317

version 1.164, 2001/05/07 13:30:10 version 1.317, 2001/09/18 16:05:43
Line 1 Line 1
 @t[a]  
 -${a}-  
 @end  
   
 @main[]  @main[]
 $uri[^taint[/aaaa.html]]  ^xslt[]
 $splitURI[^uri.lsplit[/]]  OK
 $splitURI.0!$splitURI.1  
 <HR>  @xslt[]
   $dom[^dom::set{<?xml version="1.0" encoding="windows-1251"?>
   
 $t2[^table:set{dir      title  <people>
 /here   Here          <man id="1">
                   <name>PAF</name>
           </man>
           <man id="2">
                   <name>ПИФ</name>
           </man>
   </people>
 }]  }]
 $t2{^menu{${dir}-$title}[,]}  
 <HR>  ^show-dnode[$dom]<hr>
 $dir[news]  $people[^dom.xpath[*/man[@id=1]]]
 $list[^table:dir[$dir]]  #^show1[]
 ^list.menu{  #^show-dnodes[$people]<hr>
     $subdir[$dir/$list.name]  ^show-dnodes2[$people]<hr>
         $sublist[^table:dir[$subdir]]  #^people.0.owner.hren[]
         ${list.name}/ $sublist{^menu{$name}[,]}<br>  
   @show1[]
   ^for[i](0;^people._count[]-1){
       $node[$people.$i]
           $node.first-child.value: 
                   $pattributes[$node.parent.attributes]
                   ^if(^pattributes._count[]){
                           $pattributes.id.name=$pattributes.id.value
                   }
           <br>
   }
   
   @show-dnodes[array][i]
   ^for[i](0;^array._count[]-1){
           ^show-dnode[$array.$i]
 }  }
 <HR>  
 ^t[x]  
 <HR>  
 ^if(in "/otherdeeper"){y;n}  
 <HR>  
 ^$form:проверка_имя=$form:проверка_имя<BR>  
 <form method=post>  
 <input name=проверка_имя value=проверка_значение>  
 <input type=submit>  
 </form>  
 <HR>  
   
 ^^table:dir[/]:<BR>  
 $d[^table:dir[/]]  
 $d{^menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}  
 <HR>  
   
 $files[^table:set{name}]  
 $d{^menu{  
     ^if(-d "$name"){  
         ^:files.append{$name}  
     }  
 }}  
   
 $files{^menu{$name}[,]}  
 <HR>  
   
 @exception[origin;source;comment;type;code][i;j]  
 <body bgcolor=black>  
 <font color=white>  
 ERROR:  
 ^if(def $source){$origin '$source'}  
 ${comment}.  
 ^if(def $type){type=$type}  
 ^if(def $code){code=$code}  
   
 @auto_test[]  
 ^BASE.auto_test[]  
 <li>${request:uri}!  
   
   
   @show-dnode[dnode;level][l]
   ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
   ^if($dnode.type eq element){
           &lt^;$dnode.name
   $pairs[$dnode.attributes]
   ^if(def $pairs){
           $names[^pairs._keys[]]
           ^names.menu{$names.key=$pairs.[$names.key].value }
   }
   &gt^;
   }{[$dnode.type]}
    
   ^if(def $dnode.value){'$dnode.value'}<br>
   ^if(def ${dnode.first-child}){^show-dnode[$dnode.first-child]($level+1)}
   ^if(def ${dnode.next-sibling}){^show-dnode[$dnode.next-sibling]($level)}
   
   ^if($dnode.type eq element){
   ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$dnode.name&gt^;<br>
   }
   
   @show-dnodes2[people]
   ^people.string[]

Removed from v.1.164  
changed lines
  Added in v.1.317


E-mail: