Kristofer Sandlund | 9 Feb 14:33
Picon
Favicon
Gravatar

Strange error from xml2rfc

Hi,

I haven't run xm2rfc for a few years and now I find myself with some error
that I cannot diagnose (using the web tool at xml.resource.org)

I get an error saying:
[Error] INPUT:5255:41: The content of element type "address" must match "(postal?,phone?,facsimile?,email?,uri?)".

But the document is 4686 lines so I don't really know what to look for when
it is 600 lines after the end of the document :)

When running xml2rfc without "fast" instead of "strict", I get no errors.

I also tried with the XML we used for RFC4996 that was published a few
years ago and is gives the same error as above, so something must have
changed between version 1.34 and the current one that makes my XML illegal
now even though it wasn't before....

I can send over the draft's XML code if someone knows how to debug this.

TIA,
  Kristofer
Dave CROCKER | 9 Feb 16:55

accepting legitimate posts from non-members?

Folks,

G'day.  I'm wearing my xml2rfc list co-administrator hat.

There's a legitimate message being held by the list server, because the author 
is not a member of this list.  Rather than simply let the message through, I 
thought I'd ask you folks whether there is a 'policy' that should be in place 
that allows these to be handled automatically.

There are only three paths I can think of.

    1.  One is to allow anyone to post to this list.  The rate of bogus postings 
to this list has been quite small.  So I would expect the incremental hassle 
factor on you all to be small.

    2.  Another is to create a parallel "-discuss" list, or the like, that has 
open posting.  That means posters need to know about it and it means folks here 
need to look there.

    3.  Of course, the alternative is to leave things as they are, for the 
initial posting, and let the co-administrators manually allow such legitimate 
posts by 'outsiders' through.  The burden on us isn't all that high; there are 
probably fewer of these legitimate posts than of bogus ones...  On the other 
hand, it means that any follow-up with the author will also require manual 
permission.  (Hmmm.  Or we could allow such authors to have permanent 
authorization to post; that doesn't make them 'members', so they won't get 
regular mail, but they can post followups.)

Thoughts?

(Continue reading)

Picon
Gravatar

Conversion errors

Hi all,
I have a few issues, I try to put them in the same email.

Basic stuff:
I am using 1.3.6 offline (there's no newer offline version available for download).
I am using 1.3.6 online, too (there's an error that that does not allow running the development version; see attachment: xml2rfc-dev-error.png; see transcript in 'PS' at the end of this mail).
I attached my draft so you can run some the same tests.

When I use 1.3.6 offline, I get this error:
artwork outdented 1 characters to avoid overrunning right margin around input line 231
This is meaningless because I have no clue which line is too long - my editor shows that all lines are shorted than 72.
So, I tried using the online tool (1.3.6).

With the default settings, I get this:

Unable to Validate File

INPUT: 417 ms (379 elems, 309 attrs, 7265 spaces, 28061 chars) [Error] INPUT:693:25: The content of element type "front" is incomplete, it must match "(title,author+,date,area*,workgroup*,keyword*,abstract?,note*)". To proceed, you should fix your input file. You may also try doing the conversion with Strict Checking turned off. Apache/2.2.21 (Debian) Server at xml.resource.org Port 80
This looks wrong to me because the structure does, in fact, match: title (1x), author (1x), date (1x), area (1xEMPTY), workgroup (1xEMPTY), abstract (1x), note (1x).
Something that might be work looking into.
Anyway, I go back, I change 'strict' to 'fast', and try again.
I get no messages of any kind. No errors, no warnings.

How can I figure out the reason for the figure being considered too wide?
Do I need to or is this fine?

Thank you.

PS. here's the transcript of the error from 2.2.3 in case it is useful:

Generating Text output in ASCII format

Expanding internal references and generating txt

Using XML_LIBRARY=/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml2:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml3:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml4:/home/www/tools.ietf.org/tools/xml2rfc/web/public/rfc/bibxml5 Traceback (most recent call last): File "/home/tonyh/bin/xml2rfc", line 4, in <module> import pkg_resources File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2711, in <module> parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: xml2rfc==2.2.3

File is gone -- did you click reload?

Apache/2.2.21 (Debian) Server at xml.resource.org Port 80
Best regards: Zoltán Ördögh
_______________________________________________
xml2rfc mailing list
xml2rfc <at> ietf.org
https://www.ietf.org/mailman/listinfo/xml2rfc
Michael Richardson | 27 Jan 20:14
Picon
Gravatar

xml2rfc version 2


I thought I'd try version 2 today... since version 1.36 seems upset at
my document in ways that it isn't capable of telling me about.  (to be
fair, xxe won't load it either...)

Anyway, it seems that I need lxml>=2.3, but it's source sites are down.
I see that the last commits are August 2011.  What is the situation with
version 2?  It seems that it started with great success, and now has
gotten stuck.

--

-- 
]       He who is tired of Weird Al is tired of life!           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr <at> sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
	               then sign the petition. 
Alice Hagens | 25 Jan 00:14

rsync3 down (citation libraries)

Error when using rsync3:

%> rsync rsync3.xml.resource.org::
rsync: failed to connect to rsync3.xml.resource.org: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.4]

Last files we got via rsync3 are from Nov 28 and 29 in bibxml/ and bibxml3/.

(Perhaps similar to the issue reported July of last year with rsync1 ?
http://www.ietf.org/mail-archive/web/xml2rfc/current/msg03085.html)

Thanks,
Alice
for the RFC Production Center
Picon
Favicon

xml.resource.org down?

Hi,

It seems that xml.resource.org is down (IPv4 is down, IPv6 is up but not 
responding at port 80).

Thanks.

--

-- 
Marc Petit-Huguenin
Personal email: marc <at> petit-huguenin.org
Professional email: petithug <at> acm.org
Blog: http://blog.marc.petit-huguenin.org
Carlos Pignataro | 26 Dec 03:01
X-Face
Picon
Favicon

Incorrect bib reference

Hi,

I just noticed what appears to be a misparsed of the title of RFC 1108 into the citation library:
http://xml.resource.org/public/rfc/bibxml/reference.RFC.1108.xml

<front>
<title abbrev="U.S. DOD Security Option">U.S</title>

How could this be re-parsed/fixed?

Thanks,

-- Carlos.
_______________________________________________
xml2rfc mailing list
xml2rfc <at> ietf.org
https://www.ietf.org/mailman/listinfo/xml2rfc
Harald Alvestrand | 15 Dec 10:06
Picon

Maintainers of the reference database?

Hi,

a conversation came up in the W3C about machine readable citation 
libraries; I pointed out that reference.xml.org had been doing this for 
years, to the benefit of many authors.

Some people want to talk to the maintainers; who should I point them at?

           Harald
John Levine | 20 Nov 02:37

Any way to set the base for ENTITY lookups ?

I have a local copy of the usual bibxml databases on my laptop, which
is handy when writing drafts on the plane and there's no net connection.  (It's
also nice at hotels with overpriced and/or cruddy net connections.)

Is there any way to tell xml2rfc what base URL to use when resolving
entities so I don't have to hand-edit the URLs back and forth between
the global name and the local cache?

If there's some way to tell it that I'm lying and I want the local
cache even though the entity has the full URL, that would be fine,
too.

R's,
John
John Levine | 20 Nov 02:33

Intra-document xrefs

Say you have something like this:

  explained in more detail in <xref target="foostuff" />.
    ...
  <section anchor="foostuff" title="On the Nature of Foo">

The new xml2rfc expands the xref to [foostuff] while the
old xml2rfc expanded it to Section 4.2 or Appendix Z or
whatever.

I expect this is just something that's not fully implemented
yet, but I wanted to note it as something to fix.  Internal
crossrefs are fairly common in RFCs and it would be nice for
them to work.

R's,
John
Erlend Hamnaberg | 18 Nov 14:08
Gravatar

xml2rfc

Hi guys.

I've used the pandoc2rfc tool and I noticed some deficiencies in the
NEW impl of the xml2rfc.

The problem is that when you have a RFC document with ipr="none" the
compiler dies.
It does not work like the old tcl one.

<rfc ipr="none" ...>
 ....
</rfc>

I have attached a patch which fixes this. This now does exactly the
same as the old xml2rfc.

If there are any questions or comments to the patch, please reply.

Thanks

--

Erlend Hamnaberg
--- xml2rfc/writers/base.py	2011-10-25 23:10:59.000000000 +0200
+++ xml2rfc/writers/base.py.patched	2011-11-10 12:40:10.362343438 +0100
@@ -122,6 +122,22 @@
        'and may be updated, replaced, or obsoleted by other documents at any ' \
        'time.  It is inappropriate to use Internet-Drafts as reference ' \
        'material or to cite them other than as "work in progress."']
+    boilerplate['ipr']['none'] = \
+       ['This document is an Internet-Draft and is NOT offered in' \
+	'accordance with Section 10 of RFC 2026, ' \
+       'and the author does not provide the IETF with any rights ' \
+       'other than to publish as an Internet-Draft.', \
+
+       'Internet-Drafts are working documents of the Internet Engineering '\
+       'Task Force (IETF).  Note that other groups may also distribute ' \
+       'working documents as Internet-Drafts.  The list of current Internet- ' \
+       'Drafts is at http://datatracker.ietf.org/drafts/current/.', \
+
+       'Internet-Drafts are draft documents valid for a maximum of six months ' \
+       'and may be updated, replaced, or obsoleted by other documents at any ' \
+       'time.  It is inappropriate to use Internet-Drafts as reference ' \
+       'material or to cite them other than as "work in progress."']
+    
     boilerplate['ipr']['noModificationTrust200902'] = copy.copy(boilerplate['ipr']['trust200902'])
     boilerplate['ipr']['noModificationTrust200902'].append( \
         'This document may not be modified, and derivative works of it may ' \
@@ -600,13 +616,14 @@
                     self.boilerplate['expiration_text'] % self.expire_string)

             # Copyright
-            self.write_heading('Copyright Notice', autoAnchor='rfc.copyrightnotice')
-            date = self.r.find('front/date')
-            if date is not None:
-                year = self.r.find('front/date').attrib.get('year', '')
-                self.write_paragraph(self.boilerplate['base_copyright'] % year)
-            if self.draft:
-                self.write_paragraph(self.boilerplate['draft_copyright'])
+            if ipr != "none":
+                self.write_heading('Copyright Notice', autoAnchor='rfc.copyrightnotice')
+                date = self.r.find('front/date')
+                if date is not None:
+                    year = self.r.find('front/date').attrib.get('year', '')
+                    self.write_paragraph(self.boilerplate['base_copyright'] % year)
+                if self.draft:
+                    self.write_paragraph(self.boilerplate['draft_copyright'])

             # Insert the table of contents marker at this position
             toc_enabled = self.pis.get('toc', 'no')
_______________________________________________
xml2rfc mailing list
xml2rfc <at> ietf.org
https://www.ietf.org/mailman/listinfo/xml2rfc

Gmane