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

1.312     parser      1: @main[]
                      2: ^xslt[]
1.314   ! parser      3: OK
1.307     parser      4: 
1.312     parser      5: @xslt[]
                      6: $dom[^dom::set{<?xml version="1.0" encoding="windows-1251"?>
                      7: 
                      8: <people>
                      9:        <man id="1">
                     10:                <name>PAF</name>
                     11:        </man>
                     12:        <man id="2">
                     13:                <name>دبش</name>
                     14:        </man>
                     15: </people>
                     16: }]
                     17: 
1.314   ! parser     18: ^show-dnode[$dom]<hr>
        !            19: $people[^dom.xpath[*/man/*]]
        !            20: #^show1[]
        !            21: ^show-dnodes[$people]<hr>
1.312     parser     22: 
1.314   ! parser     23: @show1[]
1.312     parser     24: ^for[i](0;^people._count[]-1){
1.314   ! parser     25:     $node[$people.$i]
        !            26:        $node.first-child.value: 
        !            27:                $pattributes[$node.parent.attributes]
        !            28:                ^if(^pattributes._count[]){
        !            29:                        $pattributes.id.name=$pattributes.id.value
        !            30:                }
        !            31:        <br>
1.312     parser     32: }
1.314   ! parser     33: 
        !            34: @show-dnodes[array2]
        !            35: ^for[i](0;^array2._count[]-1){
        !            36:        ^show-dnode[$array2.$i]
        !            37: }
        !            38: 
        !            39: @show-dnode[dnode]
        !            40: [$dnode.type] $dnode.name ^if(def $dnode.value){'$dnode.value'}<br>
        !            41: ^if(def ${dnode.first-child}){^show-dnode[$dnode.first-child]}
        !            42: ^if(def ${dnode.next-sibling}){^show-dnode[$dnode.next-sibling]}

E-mail: