Annotation of parser3/www/htdocs/_bug.html, revision 1.113

1.112     paf         1: @main[]
1.113   ! paf         2: $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?>
        !             3: <!DOCTYPE people>
        !             4: <!--some comment-->
        !             5: <people xmlns:first="http://parser.ru/first" xmlns:second="http://parser.ru/second">
        !             6:                <man first:attrname="attr value">
        !             7:             <name>ПИФ^taint[&]</name>
        !             8:                </man>
        !             9:        <man id="1" имя="word слово">
        !            10:                <name>P&#171^;AF        B</name>
        !            11:        </man>
        !            12: </people>
        !            13: }]
        !            14: 
        !            15: ^dump[$xdoc]
        !            16: 
        !            17: ^xdoc.documentElement.firstChild.nextSibling.getAttributeNS[http://parser.ru/first;attrname]!
        !            18: 
        !            19: ^xdoc.documentElement.lastChild.previousSibling.setAttributeNS[http://parser.ru/second;second:attrname2;value 2]
        !            20: 
        !            21: ^dump[$xdoc]
        !            22: 
        !            23: <hr>
        !            24: ^rem{
        !            25: 
        !            26: ^㧥.removeAttributeNS[namespaceURI;localName]   [3.1.1] 
        !            27: 
        !            28: $Attr[^㧥.getAttributeNodeNS[namespaceURI;localName]]   [3.1.1] 
        !            29: 
        !            30: $Attr[^㧥.setAttributeNodeNS[$newAttr]]   [3.1.1] 
        !            31: 
        !            32: $NodeList[^㧥.getElementsByTagNameNS[namespaceURI;localName]] 
        !            33: 
        !            34: ^if(^㧥.hasAttribute[name]){:}   [3.1.1] 
        !            35: 
        !            36: ^if(^㧥.hasAttributeNS[namespaceURI;localName]){:}   [3.1.1] 
        !            37: 
        !            38: ^show_xnode1[$xdoc.doctype]
        !            39: }
        !            40: <hr>
        !            41: 
        !            42: @dump[xdoc]
        !            43: ^show_xdoc2[$xdoc]<hr>
        !            44: ^show_xnode1[$xdoc]<hr>
        !            45: <hr>
        !            46: 
        !            47: @show1[array]
        !            48: ^for[i](0;$array-1){
        !            49:     $x[$array.$i]
        !            50:        $x.firstChild.nodeValue: 
        !            51:                $pattributes[$x.parentNode.attributes]
        !            52:                ^if(^pattributes._count[]){
        !            53:                        $pattributes.id.name=$pattributes.id.nodeValue
        !            54:                }
        !            55:        <br>
        !            56: }
        !            57:        
        !            58: @show_xnodes1[array][i]
        !            59: ^for[i](0;^array._count[]-1){
        !            60:        ^show_xnode1[$array.$i;0;1]
        !            61: }
        !            62: 
        !            63: @show_xnode1[x;level;single][l]
        !            64: ^if(def $x){
        !            65:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
        !            66:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
        !            67:        &lt^;$x.nodeName
        !            68:            $pairs[$x.attributes]
        !            69:            ^if(def $pairs){
        !            70:                $names[^pairs._keys[]]
        !            71:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
        !            72:            }
        !            73:            &gt^;
        !            74:     }{
        !            75:        [$x.nodeType]
        !            76:     }
        !            77:     
        !            78:     ^if(def $x.nodeValue){$x.nodeValue}<br>
        !            79:     ^show_xnode1[$x.firstChild]($level+1)
        !            80:     ^if(!$single){
        !            81:            ^show_xnode1[$x.nextSibling]($level)
        !            82:     }
        !            83: 
        !            84:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
        !            85:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
        !            86:     }
        !            87: }
        !            88: 
        !            89: @show_xdoc2[xdoc]
        !            90: #$response:body[^xdoc.file[    $.media-type[text/paf]  ]]
        !            91: <pre>^taint[html][^xdoc.string[
        !            92: #      $.method[html]
        !            93: #      $.encoding[utF-8]
        !            94: #      $.omit-xml-declaration[yes]
        !            95: #      $.standalone[no]
        !            96: #      -$.doctype-public[-//W3C//DTD XHTML]
        !            97: #      -$.doctype-system[/a/b/c/]
        !            98: #      $.indent[yes]
        !            99: #      $.media-type[text/paf]
        !           100: ]]
        !           101: </pre>

E-mail: