Re: [xml2rfc-dev] xml2rfc Input Document Issues

Tony Hansen <tony@att.com> Thu, 04 August 2011 18:18 UTC

Return-Path: <tony@att.com>
X-Original-To: xml2rfc-dev@ietfa.amsl.com
Delivered-To: xml2rfc-dev@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8E3821F88B7 for <xml2rfc-dev@ietfa.amsl.com>; Thu, 4 Aug 2011 11:18:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.098
X-Spam-Level:
X-Spam-Status: No, score=-106.098 tagged_above=-999 required=5 tests=[AWL=0.501, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ms03fu2xnrPE for <xml2rfc-dev@ietfa.amsl.com>; Thu, 4 Aug 2011 11:18:29 -0700 (PDT)
Received: from mail120.messagelabs.com (mail120.messagelabs.com [216.82.250.83]) by ietfa.amsl.com (Postfix) with ESMTP id 3769121F88DC for <xml2rfc-dev@ietf.org>; Thu, 4 Aug 2011 11:18:29 -0700 (PDT)
X-VirusChecked: Checked
X-Env-Sender: tony@att.com
X-Msg-Ref: server-12.tower-120.messagelabs.com!1312481922!31255543!1
X-StarScan-Version: 6.2.17; banners=-,-,-
X-Originating-IP: [144.160.20.145]
Received: (qmail 9642 invoked from network); 4 Aug 2011 18:18:43 -0000
Received: from sbcsmtp6.sbc.com (HELO mlpd192.enaf.sfdc.sbc.com) (144.160.20.145) by server-12.tower-120.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 4 Aug 2011 18:18:43 -0000
Received: from enaf.sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlpd192.enaf.sfdc.sbc.com (8.14.4/8.14.4) with ESMTP id p74IJ7ih024524 for <xml2rfc-dev@ietf.org>; Thu, 4 Aug 2011 14:19:08 -0400
Received: from alpd052.aldc.att.com (alpd052.aldc.att.com [130.8.42.31]) by mlpd192.enaf.sfdc.sbc.com (8.14.4/8.14.4) with ESMTP id p74IJ1Pj024398 for <xml2rfc-dev@ietf.org>; Thu, 4 Aug 2011 14:19:01 -0400
Received: from aldc.att.com (localhost.localdomain [127.0.0.1]) by alpd052.aldc.att.com (8.14.4/8.14.4) with ESMTP id p74IIZqc014826 for <xml2rfc-dev@ietf.org>; Thu, 4 Aug 2011 14:18:35 -0400
Received: from mailgw1.maillennium.att.com (mailgw1.maillennium.att.com [135.25.114.99]) by alpd052.aldc.att.com (8.14.4/8.14.4) with ESMTP id p74IISBS014622 for <xml2rfc-dev@ietf.org>; Thu, 4 Aug 2011 14:18:29 -0400
Received: from [135.70.173.193] (vpn-135-70-173-193.vpn.mwst.att.com[135.70.173.193]) by maillennium.att.com (mailgw1) with ESMTP id <20110804181826gw100e4l1ee> (Authid: tony); Thu, 4 Aug 2011 18:18:27 +0000
X-Originating-IP: [135.70.173.193]
Message-ID: <4E3AE26F.20007@att.com>
Date: Thu, 04 Aug 2011 14:18:23 -0400
From: Tony Hansen <tony@att.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version: 1.0
To: Josh Bothun <jbothun@concentricsky.com>
References: <277044E0-588F-4A87-B773-20CAF5CADFC2@concentricsky.com> <62F897A0-3990-47BF-B597-B1729EA82D80@concentricsky.com> <4E34093A.5080402@att.com> <6EC89A4F-1471-4E9F-80AA-5DA1D6115C27@concentricsky.com>
In-Reply-To: <6EC89A4F-1471-4E9F-80AA-5DA1D6115C27@concentricsky.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: xml2rfc-dev@ietf.org
Subject: Re: [xml2rfc-dev] xml2rfc Input Document Issues
X-BeenThere: xml2rfc-dev@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion about particulars of xml2rfc development and code." <xml2rfc-dev.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xml2rfc-dev>
List-Post: <mailto:xml2rfc-dev@ietf.org>
List-Help: <mailto:xml2rfc-dev-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Aug 2011 18:18:30 -0000

I'm trying to do an install with the latest version and I get the error 
message

     error: can't combine user with prefix/exec_prefix/home or 
install_(plat)base

I've been installing it using

     python setup.py install --home ~

Please advise.

     Tony

On 8/3/2011 1:37 PM, Josh Bothun wrote:
> On Jul 30, 2011, at 6:38 AM, Tony Hansen wrote:
>
>> ...
>>
>> On 7/30/2011 2:13 AM, Mike Biglan wrote:
>>> Hi Henrik and Tony,
>>>
>>> Here is a little more detail on what we worked on this past week in response to the input documents. We went ahead and tested a set of 450 documents in an attempt to categorize the errors, then fix any that needed fixing. Below are the categories that had errors and the counts in parentheses; this includes issues we have fixed, errors in the document or outside our codebase, and open questions.
>>>
>>> FIXED
>>>
>>> 1) Include instructions are being handled properly now.
>>>
>>> 2) No DTD file was declared in the document (12)
>>> We had already planned to handle this but it wasn't possible until a recent change.  I will implement a function in the application to default to rfc2629.dtd if no dtd is declared.
>> I'll note also that the --dtd parameter didn't seem to work either.
> This has been fixed in the latest version (2.0.2).
>
>>> 9) Incorrect DTD filename given (2)
>>> Could be a typo or intended to complete later, some files used 'rfcXXXX.dtd' for the DTD.  If we need to, we can treat this in the same way as if no DTD were given, but it might be more appropriate to display an error.
>> Can you be more specific about which documents displayed the above errors so we can see exactly what you're referring to?
> Sure -- the following documents have a DOCTYPE referencing "rfcXXXX.dtd":
>     draft-dnoveck-nfsv4-storage-control-01.xml
>     draft-dnoveck-storage-control-01.xml
>     draft-jdfalk-maawg-cfblbcp-01.xml
>     draft-kanno-secsh-camellia-02.xml
>     draft-kanno-tls-camellia-03.xml
>     draft-worley-service-example-07.xml
>
>> ERROR: Unable to parse the XML document: draft-livingood-woundy-p4p-experiences-10.xml
>> internal error, line 6, column 70
>>
>>
>> I hadn't spotted these before. "Internal error" is just as bad as a exceptions.
> I'm currently looking into these to see how we can better express the errors.  It looks like the pattern from documents that throw this is that they have syntax errors in the DOCTYPE declaration.
>
>> Tons of errors like
>>
>> ERROR: Unable to validate the XML document: draft-maino-lisp-sec-00.xml
>> Line 407: IDREF attribute target references an unknown ID "RFC5226"
>>
>>
>> that need to be understood.
>>
>>    Tony
> This large class of errors you are getting seems to be an issue with the citation loading -- I would be curious if you ran the latest HEAD again with some of my new changes if the problem still exists.
>
> I am able to replicate the error by invalidating my XML_LIBRARY path, or by removing the citation document entirely, however the script will also then print a warning saying that the include could not be resolved.  I've made it warning level instead of error level because it doesn't actually halt the parser, since processing instructions are not limited by the DTD, however it may be more appropriate for this to be an error.
> 		
> If the error is still coming up, I believe that means the citation document was not found in $XML_LIBRARY OR in the same directory as the input XML file.  Running the script with --verbose may help because it prints the path to the reference its trying to load.
>
> -josh