--- parser3/src/www/htdocs/Attic/index.html 2001/09/20 07:31:51 1.318 +++ parser3/src/www/htdocs/Attic/index.html 2001/09/21 08:57:30 1.326 @@ -1,4 +1,5 @@ @main[] +$response:content-type[$.value[text/html] $.charset[windows-1251]] ^xslt[] OK @@ -15,16 +16,14 @@ $dom[^dom::set{ }] +^show-dom2[$dom]
#^show-dnode1[$dom]
-#^show-dnode2[$dom]
-$people[^dom.select[*/man/name]] -^show1[] -#^show-dnodes2[$people]
+$people[^dom.select[*/man]] +#^show1[] +^show-dnodes1[$people]
#^people.0.owner.hren[] -$man[^dom.select-single[*/man]] - ^show-dnode1[$man;0;1] -
+^show-dnode1[^dom.select-single[*/man[2]/name];0;1]
@show1[] ^for[i](0;^people._count[]-1){ @@ -40,7 +39,7 @@ $man[^dom.select-single[*/man]] @show-dnodes1[array][i] ^for[i](0;^array._count[]-1){ - ^show-dnode1[$array.$i] + ^show-dnode1[$array.$i;0;1] } @show-dnode1[dnode;level;single][l] @@ -55,12 +54,12 @@ $man[^dom.select-single[*/man]] } >^; }{ - [$dnode.type] + $dnode.name } ^if(def $dnode.value){$dnode.value}
+ ^show-dnode1[$dnode.first-child]($level+1) ^if(!$single){ - ^show-dnode1[$dnode.first-child]($level+1) ^show-dnode1[$dnode.next-sibling]($level) } @@ -69,19 +68,17 @@ $man[^dom.select-single[*/man]] } } -@show-dnodes2[array][i] -^for[i](0;^array._count[]-1){ - ^show-dnode2[$array.$i] -} -
- -@show-dnode2[dnode] -^if(def $dnode){ -^taint[^dnode.string[ +@show-dom2[dom] +^dom.save[save.xml; +# $.encoding[windows-1251] + $.method[xml] +] +$file[^dom.file[ +# $.encoding[windows-1251] $.method[html] - $.encoding[windows-1251] ]] -; - no dnode here -} -
+^file.save[text;save_file.html] +^taint[^dom.string[ +# $.encoding[windows-1251] + $.method[html] +]] \ No newline at end of file