From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id FAA22405; Fri, 4 Apr 2003 05:31:18 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA22769 for ; Fri, 4 Apr 2003 05:31:17 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from www.duonix.com ([210.113.163.221]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h343VE504471 for ; Fri, 4 Apr 2003 05:31:15 +0200 (MET DST) Received: from hama ([192.168.0.254]) by www.duonix.com (8.12.8/8.11.6) with SMTP id h343b8O9015857; Fri, 4 Apr 2003 12:37:09 +0900 (KST) (envelope-from shoh@duonix.com) Message-ID: <005801c2fa5a$9888ad90$fe00a8c0@hama> From: "SooHyoung Oh" To: "Gerd Stolpmann" Cc: "Caml-List" Subject: [Caml-list] (PXP) bug?: stdin input Date: Fri, 4 Apr 2003 12:30:51 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam: no; 0.00; pxp:01 bug:01 stdin:01 ocaml:01 toplevel:01 parser:02 external:03 shoh:03 soohyoung:03 duonix:05 difficult:07 readme:07 produces:08 www:91 strange:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk While testing PXP (XML parser for OCaml), I met some STRANGE thing for stdin input of xml file. I fixed "readme" example a little in order to use it for stdin as well as file, it works for file input, but it produces the following error when I use stdin. % readme -html test.xml ... (OK) % readme -html < test.xml In entity [toplevel] = PRIVATE, at line 2, position 36: ERROR: (1) No input method available for this external entity: [dtd] = SYSTEM "r eadme.dtd" Is it difficult to use stdin instead of file input in PXP? You can find main.ml.diff in http://www.duonix.com/~shoh/ocaml/main.ml.diff and test.xml in http://www.duonix.com/~shoh/ocaml/test.xml Thanks in advance. --- SooHyoung Oh ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners