Annotation of parser3/tests/148.html, revision 1.1
1.1 ! paf 1: @main[]
! 2: $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?>
! 3: <!DOCTYPE people>
! 4: <!--some comment-->
! 5: <people>
! 6: <man>
! 7: <name>ПИФ^taint[&]</name>
! 8: </man>
! 9: <man id="1" имя="word слово">
! 10: <name>P«^;AF B</name>
! 11: </man>
! 12: </people>
! 13: }]
! 14:
! 15: ^show_xnode1[$xdoc.doctype]
! 16: <hr>
! 17: ^dump[$xdoc]
! 18:
! 19: $xdoc.documentElement.nodeName
! 20:
! 21: @dump[xdoc]
! 22: ^show_xdoc2[$xdoc]<hr>
! 23: ^show_xnode1[$xdoc]<hr>
! 24: <hr>
! 25:
! 26: @show1[array]
! 27: ^for[i](0;$array-1){
! 28: $x[$array.$i]
! 29: $x.firstChild.nodeValue:
! 30: $pattributes[$x.parentNode.attributes]
! 31: ^if(^pattributes._count[]){
! 32: $pattributes.id.name=$pattributes.id.nodeValue
! 33: }
! 34: <br>
! 35: }
! 36:
! 37: @show_xnodes1[array][i]
! 38: ^for[i](0;^array._count[]-1){
! 39: ^show_xnode1[$array.$i;0;1]
! 40: }
! 41:
! 42: @show_xnode1[x;level;single][l]
! 43: ^if(def $x){
! 44: ^for[l](0;$level-1){ ^; ^; ^; ^;}
! 45: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 46: <^;$x.nodeName
! 47: $pairs[$x.attributes]
! 48: ^if(def $pairs){
! 49: $names[^pairs._keys[]]
! 50: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
! 51: }
! 52: >^;
! 53: }{
! 54: [$x.nodeType]
! 55: }
! 56:
! 57: ^if(def $x.nodeValue){$x.nodeValue}<br>
! 58: ^show_xnode1[$x.firstChild]($level+1)
! 59: ^if(!$single){
! 60: ^show_xnode1[$x.nextSibling]($level)
! 61: }
! 62:
! 63: ^if($x.nodeType == $xnode:ELEMENT_NODE){
! 64: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
! 65: }
! 66: }
! 67:
! 68: @show_xdoc2[xdoc]
! 69: #$response:body[^xdoc.file[ $.media-type[text/paf] ]]
! 70: <pre>^taint[html][^xdoc.string[
! 71: # $.method[html]
! 72: # $.encoding[utF-8]
! 73: # $.omit-xml-declaration[yes]
! 74: # $.standalone[no]
! 75: # -$.doctype-public[-//W3C//DTD XHTML]
! 76: # -$.doctype-system[/a/b/c/]
! 77: # $.indent[yes]
! 78: # $.media-type[text/paf]
! 79: ]]
! 80: </pre>
E-mail: