Annotation of parser3/tests/097.html, revision 1.5
1.3 paf 1: $file[^file::load[binary;http://www.parser.ru/none/;
1.2 paf 2: $.headers[
3: $.USER-AGENT[paf]
4: ]
5: $.any-status(1)
6: ]]
7: #server: $file.SERVER<br>
8: $file.status
1.4 misha 9: <hr />
1.2 paf 10: #<pre>$file.text</pre>
1.4 misha 11:
12:
13: ^try{
1.5 ! misha 14: $file[^file::load[binary;http://www.parser.ru/xmlview.xsl;
! 15: $.timeout(10)
! 16: $.any-status(1)
! 17: ]]
! 18: ^try{
! 19: $xdoc[^xdoc::create[$file]]
! 20: xdoc from file created successfully (documentElement: $xdoc.documentElement.nodeName)
! 21: }{
! 22: can't create xdoc from file.
! 23: $exception.handled(1)
! 24: }
1.4 misha 25: }{
1.5 ! misha 26: can't load remote file.
! 27: $exception.handled(1)
! 28: }
! 29:
! 30: <hr />
! 31: ^try{
! 32: $xdoc[^xdoc::load[http://www.parser.ru/xmlview.xsl]]
! 33: remote xdoc loaded successfully (documentElement: $xdoc.documentElement.nodeName)
! 34: }{
! 35: can't load remote xdoc.
! 36: $exception.handled(1)
! 37: }
! 38:
! 39:
! 40: <hr />
! 41: ^try{
! 42: $xdoc[^xdoc::load[108.xsl]]
! 43: local xdoc loaded successfully (documentElement: $xdoc.documentElement.nodeName)
! 44: }{
! 45: can't load local xdoc.
1.4 misha 46: $exception.handled(1)
47: }
E-mail: