Annotation of parser3/src/www/htdocs/index.html, revision 1.477

1.399     parser      1: @main[]
1.477   ! paf         2: ^badoracequoting[]
        !             3: #^badconstructors[]
1.475     paf         4: #^xloadwrongtable[]
1.476     paf         5: #^xsetwrongtable[]
1.473     paf         6: #^if($form:test){y}{n}
1.472     paf         7: #^tablecolumnerror[]
                      8: #^roll[]
1.471     paf         9: #^cookie2[]
1.470     paf        10: #^tableset[]
1.469     paf        11: #^math:PI.format{%.30f}
1.462     paf        12: #^xchildren[]
                     13: #^thashforeach3[]
1.461     paf        14: #^thashforeach2[]
                     15: #^thashforeach[]
1.458     paf        16: #^thashdelete[]
1.456     paf        17: #^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
1.454     paf        18: #^tappend[]
1.453     paf        19: #^sappend[]
1.452     paf        20: #^eval(10\3)<br>
1.450     paf        21: #^tform[]
1.448     paf        22: #^formattest[]
1.447     paf        23: #^filelist[]
1.443     paf        24: #^connect[mysql://user:pass@host]{ }
1.431     paf        25: #^безнадёжна_попытка_поправить_непоправимое[]
1.430     parser     26: #^tcache[]
1.460     paf        27: #^thashfileexp[]
1.468     paf        28: #^tcounter[]
1.423     parser     29: #^tablehash[]
1.443     paf        30: #j^hashfile[]
1.417     parser     31: #^formclass[]
1.415     parser     32: #^hren[]
1.475     paf        33: #^domedit[]
                     34: #^domxslt[]
1.402     parser     35: #^lsplit2[]
1.401     parser     36: #^faceesize[]
1.445     paf        37: #^imageresize[]
1.399     parser     38: #^ifassignhash[]
                     39: #^tintdefault[]
                     40: #$response:status[404]
1.390     parser     41: #^ifpasshash[]
1.387     parser     42: #^movedir[]
                     43: #^replace[]
1.416     parser     44: #^set[]
1.385     parser     45: #^hash[]<hr>
1.384     parser     46: #$t[^methresult[]] ->$t
1.382     parser     47: #^terror[]
1.378     parser     48: #^ssave[]
1.377     parser     49: #^calendar[]
1.376     parser     50: #^thash[]
1.373     parser     51: #^tdef[]
1.375     parser     52: #^ford[]
1.371     parser     53: #^tif[]
1.383     parser     54: #^image[]
1.369     parser     55: #^mail2[]
1.413     parser     56: #^cookie[]
1.365     parser     57: #^response[]
1.364     parser     58: #^regexp2[]
                     59: #^ttablerem[]
                     60: #^pcre[]
                     61: #^regexp[]<hr>
                     62: #^mail[]
                     63: #^exec[]
                     64: #^fori[]
1.468     paf        65: #^tconnect[]
1.470     paf        66: #^xslt[]
                     67: #^xml[]
1.364     parser     68: #^header[]
1.477   ! paf        69: <hr>
1.364     parser     70: OK
1.477   ! paf        71: 
        !            72: @badoracequoting[]
        !            73: $SQL.connect-string[oracle://webspb:webpwd@mts?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
        !            74: ^connect[$SQL.connect-string]{
        !            75: $tables[^table::sql{select table_name from user_tables}]
        !            76: ^tables.menu{
        !            77: $tables.table_name<br>
        !            78: }
        !            79: 
        !            80: <hr>
        !            81: $news[^table::sql{select description from news}[$.limit(3)]]
        !            82: ^news.menu{
        !            83:        ^untaint{$news.description}<hr>
        !            84: 
        !            85: }
        !            86: }
        !            87: <hr>
        !            88: $env:PATH
1.476     paf        89: 
                     90: @badconstructors[]
                     91: $bred[^string::length[]]
                     92: $bred[^response::clear[]]
                     93: $bred[^int::int[]]
                     94: 
1.475     paf        95: 
                     96: @xloadwrongtable[]
                     97: $constr[^xdoc::load[wrongtable.xml]]
                     98: 
                     99: @xsetwrongtable[]
                    100: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?>
                    101: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    102: 
1.471     paf       103: 
1.472     paf       104: @tablecolumnerror[]
                    105: $t[^table::set{a}]
                    106: $t.$a
                    107: 
1.471     paf       108: @roll[]
1.472     paf       109: #$date[^date::set(1970;1;2)]
                    110: #^date.roll[month](-1)
                    111: $date[^date::set(2038;1;1)]
1.471     paf       112: ^date.roll[month](+1)
                    113: $date.year  $date.month  $date.day
1.470     paf       114: 
                    115: @cookie2[]
                    116: #=$cookie:clientType[$.value[test]]=<br>
                    117: =$cookie:clientType=<br>
                    118: 
1.469     paf       119: 
                    120: @tableset[]
                    121: $a[^table::set{a
                    122: 1
                    123: 2}]
                    124: ^eval(100\$a)
                    125: 
                    126: 
                    127: 
                    128: @zzz[]
                    129: 
1.462     paf       130: 
                    131: $constructor[
                    132: <block1 name="main_srvr" type="0" label="Основное тело" />
                    133: <block2 name="main_srvr2" type="0" label="Основное тело" />
                    134: ]
                    135: 
                    136: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    137: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    138: 
                    139: $children[$constr.documentElement.childNodes]
                    140: ^if($children){
                    141: ^for[i](1;^children._count[]){
                    142:        $node[$children.$i]
                    143:        $node.nodeName<br>
                    144: }
                    145: }
                    146:    
1.461     paf       147: 
                    148: @thashforeach3[]
                    149: $h[
                    150:        $.a[1] 
                    151:        $.b[2]
                    152: ]
                    153: $c[^table::set{a
                    154: ^h.foreach[key;value]{$value
                    155: }}]
                    156: $c.a
                    157: 
                    158: @thashforeach2[]
                    159: $h[
                    160:        $.a[1] 
                    161:        $.b[2]
                    162: ]
                    163: $c[
                    164: ^h.foreach[key;value]{
                    165:        $.$key[$value]
                    166: }
                    167: ]
                    168: $c.b
1.458     paf       169: 
                    170: @thashforeach[]
                    171: $h[
                    172:        $.a[1] 
                    173:        $.b[2]
                    174: ]
                    175: ^h.foreach[key;value]{
                    176:        $key=$value<br>
                    177: }
1.457     paf       178: 
                    179: @thashdelete[]
                    180: $h[$.a[1] $.b[2]]
                    181: was:<br>
                    182: count=^h._count[] <br>
                    183: b='$h.b' <br>
                    184: 
                    185: ^h.delete[b] 
                    186: 
                    187: now:<br>
                    188: count=^h._count[] <br>
                    189: b='$h.b' 
1.452     paf       190: 
                    191: @sappend[]
                    192: $test[123]
                    193: ^test.save[test]
                    194: ^test.save[append;test]
                    195: 
1.453     paf       196: @tappend[]
                    197: $test[^table::set{a    b
                    198: a1     b1}]
                    199: ^test.save[test]
                    200: $test[^table::set{a    b
                    201: a2     b2}]
                    202: ^test.save[append;test]
1.452     paf       203: 
1.448     paf       204: 
                    205: @tform[]
1.449     paf       206: ^if(def $form:new_file){y}{n}
                    207: <form method="post" enctype="multipart/form-data">
                    208: <input type="file" name="new_file" />
1.448     paf       209: <input type=submit>
                    210: </input>
1.447     paf       211: 
                    212: @formattest[]
                    213: $size(15.124)
                    214: 
                    215: ^size.format{%.2f}
1.446     paf       216: 
                    217: @filelist[]
                    218: $html[^file:list[.;\.html^$]]
                    219: ^html.menu{
                    220:        $html.name<br>
                    221: }
                    222: <hr>
1.431     paf       223: 
                    224: @безнадёжна_попытка_поправить_непоправимое[]
                    225: $dom_from_disk[^xdoc::load[input.xml]]
                    226: $dom_created_in_air[^xdoc::create[doc]]
                    227: ^dom_created_in_air.documentElement.appendChild[^dom_from_disk.documentElement.cloneNode(1)]
                    228: ^show-xdoc2[$dom_created_in_air]
                    229: 
1.426     parser    230: 
1.428     parser    231: @tcache[]
                    232: #^hashfile:clear[cache]
1.459     paf       233: $code[^hashfile::open[$DB_HOME;cache]]
1.430     parser    234: ^code.cache[key](2){
                    235:        ^math:random(100)
                    236: #      ^code.delete[]
1.428     parser    237: }
                    238: 
                    239: 
1.426     parser    240: @thashfileexp[]
1.459     paf       241: $hf[^hashfile::open[$DB_HOME;hashfile]]
1.428     parser    242: $hf.paf[$.value[крут] $.expires(3)]
                    243: paf=$hf.paf
1.459     paf       244: <hr>
                    245: ^hf.foreach[key;value]{
                    246:        $key=$value<br>
                    247: }
1.427     parser    248: <hr>
                    249: $hash[^hf.hash[]]
                    250: =$hash.paf=
                    251: <hr>
1.420     parser    252: 
1.423     parser    253: @tcounter[]
1.440     paf       254: ^tcounterone[$DB_HOME]
1.466     paf       255: other root:
                    256: ^tcounterone[${DB_HOME}2]
                    257: again, first:
                    258: ^tcounterone[$DB_HOME]
1.432     paf       259: 
                    260: @tcounterone[DB_HOME]
                    261: $counter[^hashfile::open[$DB_HOME;counter]]
1.440     paf       262: #^counter.clear[]
1.423     parser    263: ^counter.transaction{
                    264: #      $counter.value(10)
                    265:        $counter.value($counter.value+1)
                    266: #      ^counter.delete[value]
                    267:        $counter.value
                    268: }
1.424     parser    269: <hr>
1.432     paf       270: ^rem{
1.424     parser    271: $hash[^counter.hash[]]
1.425     parser    272: =$hash.value=
1.424     parser    273: <hr>
1.432     paf       274: }
1.423     parser    275: 
                    276: @tablehash[]
                    277: $productList[^table::set{id    name
                    278: 1      носки
                    279: 2      валенки
                    280: 3      ушанка
                    281: }]
                    282: 
                    283: #скажем, у первого дилера
                    284: $firstPriceList[^table::set{id price
                    285: 1      0.3
                    286: 3      1000
                    287: }]
                    288: 
                    289: $firstPriceHash[^firstPriceList.hash[id]]
                    290: 
                    291: ^productList.menu{
                    292:     продукт "$productList.name" | цена у first: $firstPriceHash.[$productList.id].price<br>
                    293: }
                    294: 
                    295: 
1.420     parser    296: @hashfile[]
                    297: $hf[^hashfile::assign[hashfile]]
1.423     parser    298: #$hf.paf[крут5]
1.420     parser    299: paf=$hf.paf
1.402     parser    300: 
1.417     parser    301: @formclass[]
                    302: ^$form:CLASS.a=$form:CLASS.a
                    303: 
1.406     parser    304: @domdata[]
1.418     parser    305: ^if(1){
1.422     parser    306: #      $a{^hren[]}
1.418     parser    307: }
1.419     parser    308: $a
1.408     parser    309: $xdoc[^xdoc::create[doc]]
                    310: $doc[$xdoc.documentElement]
1.473     paf       311: $name[^doc.appendChild[^xdoc.createElement[name]]]
1.474     paf       312: $text[^name.appendChild[^xdoc.createTextNode[петросян&coz]]]
1.435     paf       313: ^untaint[as-is]{=$text.nodeValue=}
1.406     parser    314: 
                    315: @domedit[]
                    316: ^domdata[]
1.404     parser    317: #$paf.nodeName<br>
                    318: #$doc.documentElement.nodeName<br>
                    319: 
1.406     parser    320: ^show-xnode1[$xdoc.documentElement;0;1]
                    321: <hr>
                    322: ^show-xdoc2[$xdoc]
1.411     parser    323: <hr>
1.406     parser    324: 
                    325: @domxslt[]
                    326: ^domdata[]
1.405     parser    327: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.411     parser    328: <hr>
1.401     parser    329: 
                    330: @lsplit2[]
                    331: $path[/optics/]
                    332: $pathTable[^path.lsplit[/]]
                    333: ^pathTable.menu{
                    334:        ^if(def $pathTable.piece){
                    335:                =$pathTable.piece=
                    336:        }
                    337: }
                    338: 
1.395     parser    339: 
1.397     parser    340: @faceesize[]
                    341: $k(2)
                    342: $pict[^image::load[paf.gif]]
                    343: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.398     parser    344: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;250)
1.397     parser    345: $response:body[^small.gif[]]
                    346: 
1.395     parser    347: @imageresize[]
                    348: $k(2)
                    349: $pict[^image::create(400*$k;200*$k)]
                    350: $pict.line-width(2)
1.444     paf       351: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    352: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-20;$pict.height-20;0+20;360-20;0xff0000)
1.395     parser    353: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
1.444     paf       354: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-20;0x0000ff)
                    355: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+20;360-20;0xff0000)
                    356: $response:body[^pict.gif[]]
1.395     parser    357: 
1.443     paf       358: #$small[^image::create($pict.width/$k;$pict.height/$k)]
1.396     parser    359: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
1.443     paf       360: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;0)
1.395     parser    361: 
1.443     paf       362: #$response:body[^small.gif[]]
1.395     parser    363: 
1.388     parser    364: 
                    365: @tintdefault[]
                    366: #$abc[abc]
                    367: $abc[33]
                    368: ^abc.int[z]
                    369: #^abc.int(123)
1.390     parser    370: 
                    371: @ifassignhash[]
                    372: $h[^if(1){$.a(1);$.a(2)}]
                    373: $h.a
1.387     parser    374: 
                    375: @ifpasshash[]
                    376: $a[$.e[a]]
                    377: $b[$.e[b]]
1.389     parser    378: ^ifpasshashdest[^if(1){$a;$b}]
1.387     parser    379: #$x[^if(1){$a}{$b}]
                    380: #^ifpasshashdest[$x]
                    381: 
                    382: @ifpasshashdest[p]
                    383: $p.e
                    384: 
                    385: @movedir[]
                    386: ^file:move[a;deeper/a]
1.386     parser    387: 
                    388: @replace[]
                    389: $a[12^;3]
                    390: ^a.replace[^table::set{from    to
                    391: 2^;    !
                    392: }]
                    393: 
1.385     parser    394: 
                    395: @set[]
                    396: ^setdata[]
                    397: ^a.add[$b]
                    398: add:$a.3<br>
                    399: 
                    400: ^setdata[]
                    401: ^a.sub[$b]
                    402: sub2:$a.2<br>
                    403: sub1:$a.1<br>
                    404: 
                    405: ^setdata[]
                    406: $c[^a.union[$b]]
                    407: union3:$c.3<br>
                    408: union2:$c.2<br>
                    409: 
                    410: ^setdata[]
                    411: $c[^a.intersection[$b]]
                    412: intersection3:$c.3<br>
                    413: intersection2:$c.2<br>
                    414: 
                    415: ^setdata[]
                    416: intersects:^if(^a.intersects[$b]){y;n}<br>
                    417: intersects2:^if(^a.intersects[ ]){y;n}<br>
                    418: 
                    419: 
                    420: <hr>
                    421: 
                    422: @setdata[]
                    423: $a[$.1[a1] $.2[a2]]
                    424: $b[        $.2[b2] $.3[b3]]
                    425: 
1.383     parser    426: 
1.384     parser    427: @hash[]
                    428: $h[^hash::create[$._default[123]]]
                    429: $h.paf[not kretin]
                    430: $h.paf<br>
                    431: =$h.that=<br>
                    432: 
                    433: @methresult[]
                    434: $result[^table::set{1}]
1.377     parser    435: 
1.381     parser    436: @terror[]
                    437: ^error[method z must be called with z]
                    438: 
1.380     parser    439: @syntax1[]
                    440: #^a[^b]
                    441: 
                    442: @syntax2[]
1.381     parser    443: #^a[
1.379     parser    444: 
1.377     parser    445: @ssave[]
                    446: $abc[abc]
                    447: ^abc.save[abc]
1.376     parser    448: 
                    449: @calendar[]
                    450: 2001;11:<br>
                    451: $week_days[^date:calendar[rus](2001;11)]
                    452: <pre>
                    453: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday;&nbsp^;&nbsp^;} }<br>}
                    454: </pre>
1.372     parser    455: 
1.375     parser    456: @thash[]
                    457: $table[^table::set{id  name    age
                    458: 1      paf     278
                    459: 2      пиф     234
                    460: }]
                    461: $hash[^table.hash[id;^table::set[nameless]{id
                    462: name}]]
                    463: $hash.2.id $hash.2.name $hash.2.age
                    464: 
1.372     parser    465: @tdef[]
                    466: $s[0]
                    467: if 0=^if($s){}{n}<br>
                    468: if def 0=^if(def $s){y}{}<br>
                    469: <hr>
1.371     parser    470: 
                    471: @ford[]
1.374     parser    472: ^for[i](0;5){$i}{($i)}
1.368     parser    473: 
1.370     parser    474: @tif[]
                    475: ^if[def]{y;n}
                    476: 
1.368     parser    477: @image[]
                    478: $pict[^image::create(400;200)]
1.379     parser    479: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    480: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                    481: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    482: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                    483: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368     parser    484: $response:body[^pict.gif[]]
                    485: 
                    486: 
1.366     parser    487: 
1.369     parser    488: @mail2[]
1.367     parser    489: ^mail:send[
1.369     parser    490:        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    491:        $.from[Александр Петросян <paf@design.ru>]
1.367     parser    492:        $.to[Александр Петросян <paf@design.ru>]
1.369     parser    493:        $.subject[проверка]
                    494:        $.body[проверка]
1.367     parser    495: ]
                    496: 
1.366     parser    497: @cookie[]
1.367     parser    498: $env:HTTP_COOKIE<br>
                    499: 
                    500: #$cookie:переменная[test тест ТЕСТ2]
                    501: =$cookie:переменная=<br>
                    502: #$cookie:переменная2[test тест ТЕСТ3]
                    503: =$cookie:переменная2=<br>
1.412     parser    504: =$cookie:CLASS.переменная2=<br>
1.365     parser    505: 
                    506: @response[]
                    507: #^if($form:reload){
                    508:        $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
                    509: #}
1.364     parser    510: 
                    511: @xslt[]
                    512: ^xdata[]
1.407     parser    513: $transformed[^xdoc.transform[global.xsl;$.param1[123/]]]
                    514: ^show-xdoc2[$transformed]
1.364     parser    515: 
                    516: @regexp2[]
                    517: $s[  select]
                    518: $s[^s.match[^^\s*][]{!}]
                    519: $s
                    520: 
                    521: @header[]
                    522: $response:refresh[
                    523:        $.value[0]
                    524:        $.url[http://design.ru?a=^taint[123]]
                    525: ]
                    526: 
                    527: @ttablerem[]
                    528: $table[^table::load[a.cfg]]
                    529: ^table.menu{$table.a}
                    530: 
                    531: @tconnect[]
                    532: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
                    533: $tables[^table::sql{show tables}]
                    534: #$cols[^tables.columns[]]
                    535: #$cols.column
                    536: ^tables.menu{
                    537:        $tables.[Tables_in_test]<br>
                    538: }
                    539: }
                    540: 
                    541: @pcre[]
                    542: $s[1 2]
                    543: ^s.match[\s;ig]{!}
                    544: #^s.match[\d;ig]{!}
                    545: 
                    546: 
                    547: @regexp[]
                    548: $s[abcАБВ]
                    549: ^if(^s.match[б][i]){y}{n}
                    550: 
                    551: @mail[]
                    552: #$ORIGINS(1)
                    553: ^mail:send[
                    554:        $.from[paf@design.ru]
                    555:        $.to[paf@design.ru]
                    556:        $.body[1
                    557:        
                    558:        2
                    559:        
                    560:        
                    561:                3]
                    562: ]
                    563: 
                    564: @exec[]
1.370     parser    565: $a[^file::exec[fc.exe;;a;b]]
1.364     parser    566: $a.status|$a.stderr<hr>
                    567: 
                    568: @fori[][i]
                    569: ^for[i](1;3){... =$i= ...}
                    570: 
                    571: @xdata[]
                    572: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
1.468     paf       573: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
                    574: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    575: 
                    576: <people>
                    577:        <man id="1" имя="word слово">
                    578:                <name>P&#171^;AF        B</name>
                    579:        </man>
                    580:                <man id="2">
                    581:                        <name>ПИФ^taint[&]</name>
                    582:                </man>
                    583: </people>
                    584: }]
1.364     parser    585: 
                    586: @xml[]
                    587: ^xdata[]
                    588: 
                    589: ^show-xdoc2[$xdoc]<hr>
                    590: #^show-xnode1[$xdoc]<hr>
                    591: $people[^xdoc.select[*/man]]
                    592: #^show1[]
                    593: ^show-xnodes1[$people]<hr>
                    594: #^people.0.owner.hren[]
                    595: 
1.393     parser    596: ^show-xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
1.364     parser    597: 
                    598: by id:
                    599: ^show-xnode1[^xdoc.getElementById[1];0;1]
                    600: <hr>
                    601: 
                    602: @show1[array]
                    603: ^for[i](0;^array._count[]-1){
                    604:     $x[$array.$i]
                    605:        $x.firstChild.nodeValue: 
                    606:                $pattributes[$x.parentNode.attributes]
                    607:                ^if(^pattributes._count[]){
                    608:                        $pattributes.id.name=$pattributes.id.nodeValue
                    609:                }
                    610:        <br>
                    611: }
                    612:        
                    613: @show-xnodes1[array][i]
                    614: ^for[i](0;^array._count[]-1){
                    615:        ^show-xnode1[$array.$i;0;1]
                    616: }
                    617: 
                    618: @show-xnode1[x;level;single][l]
                    619: ^if(def $x){
                    620:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                    621:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    622:        &lt^;$x.nodeName
                    623:            $pairs[$x.attributes]
                    624:            ^if(def $pairs){
                    625:                $names[^pairs._keys[]]
                    626:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                    627:            }
                    628:            &gt^;
                    629:     }{
                    630:        [$x.nodeType]
                    631:     }
                    632:     
                    633:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                    634:     ^show-xnode1[$x.firstChild]($level+1)
                    635:     ^if(!$single){
                    636:            ^show-xnode1[$x.nextSibling]($level)
                    637:     }
                    638: 
                    639:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    640:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                    641:     }
                    642: }
                    643: 
                    644: @show-xdoc2[xdoc]
1.473     paf       645: ^xdoc.save[out/save.xml;
1.364     parser    646: #      $.encoding[windows-1251]
                    647:        $.method[xml]
                    648: ]
                    649: $file[^xdoc.file[
                    650: #      $.encoding[windows-1251]
                    651:        $.method[html]
                    652: ]]
1.473     paf       653: ^file.save[text;out/save_file.html]
1.463     paf       654: <pre>^taint[^xdoc.string[]]
1.364     parser    655: #      $.encoding[windows-1251]
1.413     parser    656: #      $.method[html]
1.364     parser    657: #]]
1.413     parser    658: </pre>
1.435     paf       659: 

E-mail: