Subject: [xml2rfc] rude comments

From: Randy Bush <[email-masked]>
Date: Sun, 26 Jan 2014 23:58:47 +0900

draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 

where these lines are the ------BEGIN etc of 

      <t>The result is (note this ought not be reproducible because each
        key better be unique, but you ought to get the same format):</t>
        <figure>
          <artwork>
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIEzFLfqklXUpodvaqGuivapVRzRxiITh4UdlJ/JTAgKxoAoGCCqGSM49
AwEHoUQDQgAEM4VgV/qUB06BZ9bzqYyXIfacC5NDr9yavwxfbZnGejIaeXXt2OO/
qkmQQq3E7m/GEJ+XFyciLv2da9waZMTVQg==
-----END EC PRIVATE KEY-----
            </artwork>
          </figure>
       <t>To convert the result to PKCS#8, issue the following command:</t>

       <t>openssl pkcs8 -topk8 -inform PEM -outform PEM -in ecKey.pem
         -out ecKey-p8.pem -nocrypt</t>
        <figure>
          <artwork>
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgTMUt+qSVdSmh29qo
a6K9qlVHNHGIhOHhR2Un8lMCArGhRANCAAQzhWBX+pQHToFn1vOpjJch9pwLk0Ov
3Jq/DF9tmcZ6Mhp5de3Y47+qSZBCrcTub8YQn5cXJyIu/Z1r3BpkxNVC
-----END PRIVATE KEY-----
            </artwork>
          </figure>

---

From: Russ Allbery <[email-masked]>
Date: Sun, 26 Jan 2014 12:08:41 -0800

> -----END EC PRIVATE KEY-----

This should be:

            <artwork><![CDATA[
-----END EC PRIVATE KEY-----
]]>
            </artwork>

I think.  At least, that's always worked for me.

-- 
Russ Allbery ([email-masked])              <http://www.eyrie.org/~eagle/>

---

From: Randy Bush <[email-masked]>
Date: Mon, 27 Jan 2014 07:41:21 +0900

-----END EC PRIVATE KEY-----
]]>
            </artwork>
          </figure>

produces

ERROR: Unable to parse the XML document: draft-ymbk-bgpsec-rtr-keying.xml
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 264: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 
 draft-ymbk-bgpsec-rtr-keying.xml: Line 268: Comment not terminated 

i suspect it is triggering on the ----- stuff, but what do i know?

randy

---

From: Julian Reschke <[email-masked]>
Date: Mon, 27 Jan 2014 08:18:25 +0100

> -----END PRIVATE KEY-----

The text above seems to be fine.

I recommend running the XML file though a generic XML parser to get 
better diagnostics. Or post the whole file over here (or send it to me 
directly).

Best regards, Julian

---

From: Julian Reschke <[email-masked]>
Date: Mon, 27 Jan 2014 08:20:16 +0100

On 2014-01-26 21:08, Russ Allbery wrote:
> ...

Not needed (and doesn't make any difference) unless the text contains 
"<" or "&" characters.

Best regards, Julian

---

From: Julian Reschke <[email-masked]>
Date: Mon, 27 Jan 2014 13:58:54 +0100

> -----END PRIVATE KEY-----

This was caused by the whole quoted section sitting inside an XML 
comment, and XML comments can't contain the string "--".

Best regards, Julian

---

From: Brian E Carpenter <[email-masked]>
Date: Tue, 28 Jan 2014 08:05:31 +1300

On 28/01/2014 01:58, Julian Reschke wrote:
...
> comment, and XML comments can't contain the string "--".

Which, incidentally, is really annoying, because it means you can't
comment out an XML segment that includes a comment. A bad design
choice, IMHO, but not one we can fix. However, the latest XML2RFC
gives a decent diagnostic:

<!-- Not <!-- allowed --> to do this -->

ERROR: Unable to parse the XML document: INPUT
 INPUT: Line 66: Double hyphen within comment

   Brian

---

From: Curtis Villamizar <[email-masked]>
Date: Mon, 27 Jan 2014 20:51:06 -0500

/* this /* won't work */ either :) */

In message <[email-masked]>
Brian E Carpenter writes:

   Brian
_______________________________________________
xml2rfc mailing list
[email-masked]
https://www.ietf.org/mailman/listinfo/xml2rfc