Re: [xml2rfc-dev] [svnhook] Svn commit to tools/xml2rfc

Tony Hansen <tony@att.com> Fri, 26 August 2011 01:42 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 F3F3B21F856A for <xml2rfc-dev@ietfa.amsl.com>; Thu, 25 Aug 2011 18:42:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.217
X-Spam-Level:
X-Spam-Status: No, score=-106.217 tagged_above=-999 required=5 tests=[AWL=0.381, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ro--Gnq++s-U for <xml2rfc-dev@ietfa.amsl.com>; Thu, 25 Aug 2011 18:42:32 -0700 (PDT)
Received: from mail119.messagelabs.com (mail119.messagelabs.com [216.82.241.195]) by ietfa.amsl.com (Postfix) with ESMTP id AC2D521F8562 for <xml2rfc-dev@ietf.org>; Thu, 25 Aug 2011 18:42:31 -0700 (PDT)
X-Env-Sender: tony@att.com
X-Msg-Ref: server-3.tower-119.messagelabs.com!1314323025!35977109!1
X-Originating-IP: [144.160.20.145]
X-StarScan-Version: 6.3.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11115 invoked from network); 26 Aug 2011 01:43:45 -0000
Received: from sbcsmtp6.sbc.com (HELO mlpd192.enaf.sfdc.sbc.com) (144.160.20.145) by server-3.tower-119.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 26 Aug 2011 01:43:45 -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 p7Q1iBDe007982 for <xml2rfc-dev@ietf.org>; Thu, 25 Aug 2011 21:44:11 -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 p7Q1i3m7007883 for <xml2rfc-dev@ietf.org>; Thu, 25 Aug 2011 21:44:04 -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 p7Q1ha7U009881 for <xml2rfc-dev@ietf.org>; Thu, 25 Aug 2011 21:43:36 -0400
Received: from dns.maillennium.att.com (dns.maillennium.att.com [135.25.114.99]) by alpd052.aldc.att.com (8.14.4/8.14.4) with ESMTP id p7Q1hV8H009735 for <xml2rfc-dev@ietf.org>; Thu, 25 Aug 2011 21:43:33 -0400
Received: from [135.70.208.219] (vpn-135-70-208-219.vpn.east.att.com[135.70.208.219]) by maillennium.att.com (mailgw1) with ESMTP id <20110826014330gw100e4lele> (Authid: tony); Fri, 26 Aug 2011 01:43:31 +0000
X-Originating-IP: [135.70.208.219]
Message-ID: <4E56FA3F.5030807@att.com>
Date: Thu, 25 Aug 2011 21:43:27 -0400
From: Tony Hansen <tony@att.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0
MIME-Version: 1.0
To: Josh Bothun <jbothun@concentricsky.com>
References: <E1QwhM9-0004E1-F7@zinfandel.tools.ietf.org> <4E56C369.6090201@att.com> <EEC985FB-ACEB-408D-A8FB-D8714DCB5B19@concentricsky.com>
In-Reply-To: <EEC985FB-ACEB-408D-A8FB-D8714DCB5B19@concentricsky.com>
Content-Type: multipart/alternative; boundary="------------010208080208050302090501"
Cc: xml2rfc-dev@ietf.org
Subject: Re: [xml2rfc-dev] [svnhook] Svn commit to tools/xml2rfc
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: Fri, 26 Aug 2011 01:42:33 -0000

On 8/25/2011 7:29 PM, Josh Bothun wrote:
> Hi Tony,
>
> On Aug 25, 2011, at 2:49 PM, Tony Hansen wrote:
>
>> I installed this version on xml.resource.org <http://xml.resource.org>.
>>
>> I'm having a problem getting it to find external references when 
>> invoked from the web (http://xml.resource.org/experimental.html).
>>
>> Try sending it draft-ietf-iri-4395bis-irireg-03.xml
>>
>> I printed out the value of $XML_LIBRARY to help debug this.
>>
>> Are there additional options I can invoke xml2rfc2 with (in addition 
>> to --verbose) that will tell us *where* it's looking for its references?
>
> I see the error -- this is odd.   The reason the error simply says:
>
> Unable to resolve external request: 
> "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3987.xml"
>
> instead of giving a list of locations it tried is because the source 
> document asks for that full URL, so no other locations are tried.  Why 
> its failing on a perfectly valid URL, however, I'm not sure of yet. 
>  It works fine on my local machine, and hopefully yours as well.  I 
> will look into this.

It may be an issue with permissions on the cache. Error messages to that 
effect would be useful.

I'm pretty sure xml2rfc1 looks up the files for full URLs in 
$XML_LIBRARY first *before* trying to find them on the network, so 
that's probably a compatibility bug.

>> Also, it doesn't appear that xml2rfc is exiting with an error code 
>> when it cannot parse the file. Please add an exit non-zero (e.g. 1) 
>> or its equivalent for any failures.
>
> Sure, will do.

thanks!

     Tony

>
> -josh
>
>>
>>    Tony
>>
>> On 8/25/2011 5:20 PM, www-data wrote:
>>> jbothun@concentricsky.com <mailto:jbothun@concentricsky.com> has 
>>> made a new SVN commit in
>>> tools/xml2rfc/version2 [524]:
>>>
>>> Caching resolver will print both URL and cache locations if --verbose
>>>
>>> "Index" section skipped if no irefs are registered
>>>
>>> Svn: http://svn.tools.ietf.org/svn/tools/xml2rfc//version2
>>> Trac: 
>>> http://trac.tools.ietf.org/tools/xml2rfc/trac//changeset/524/version2
>>>
>>> Files:
>>>
>>> U   version2/cli/xml2rfc/parser.py
>>> U   version2/cli/xml2rfc/writers/base.py
>>> U   version2/cli/xml2rfc/writers/paginated_txt.py
>>>
>