<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Xml2rfc on Miek Gieben</title>
    <link>https://miek.nl/tags/xml2rfc/</link>
    <description>Recent content in Xml2rfc on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Wed, 13 Nov 2019 07:17:36 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/xml2rfc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to install xml2rfc on Debian</title>
      <link>https://miek.nl/2019/november/13/how-to-install-xml2rfc-on-debian/</link>
      <pubDate>Wed, 13 Nov 2019 07:17:36 +0000</pubDate>
      <guid>https://miek.nl/2019/november/13/how-to-install-xml2rfc-on-debian/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://trac.tools.ietf.org/tools/xml2rfc/trac/&#34;&gt;Xml2rfc&lt;/a&gt; is &lt;em&gt;the&lt;/em&gt; tool the IETF uses to convert&#xA;the canonical XML for an Internet-Draft into text, HTML or a PDF. This utility has seen many&#xA;releases while the XML schema was being finalized. It&amp;rsquo;s important (if you write I-Ds) that you have&#xA;the latest version of xml2rfc installed.&lt;/p&gt;&#xA;&lt;p&gt;Installing it as a Debian package is done with:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;go to &lt;a href=&#34;https://pypi.org/project/xml2rfc/#files&#34;&gt;https://pypi.org/project/xml2rfc/#files&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;download the tar archive (say &amp;ldquo;xml2rfc-2.35.0.tar.gz&amp;rdquo;)&lt;/li&gt;&#xA;&lt;li&gt;execute: &lt;code&gt;py2dsc-deb xml2rfc-2.35.0.tar.gz&lt;/code&gt; (&amp;ldquo;py2dsc-deb&amp;rdquo; can be found in the &amp;ldquo;python-stdeb&amp;rdquo; package)&lt;/li&gt;&#xA;&lt;li&gt;execute: &lt;code&gt;sudo dpkg -i deb_dist/python-xml2rfc_2.35.0-1_all.deb&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Note a &lt;code&gt;py2dsc&lt;/code&gt; also exists, but that doesn&amp;rsquo;t create a Debian package.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mmark Updates</title>
      <link>https://miek.nl/2016/may/09/mmark-updates/</link>
      <pubDate>Mon, 09 May 2016 18:54:21 +0100</pubDate>
      <guid>https://miek.nl/2016/may/09/mmark-updates/</guid>
      <description>&lt;p&gt;Recent &lt;a href=&#34;https://github.com/miekg/mmark/issues&#34;&gt;bug reports&lt;/a&gt; prompted some Mmark development (guess&#xA;I am into bug-driven development). New releases can &lt;a href=&#34;https://github.com/miekg/mmark/releases&#34;&gt;be found on&#xA;Github&lt;/a&gt;. Anyway Mmark saw some bug fixes and new features:&lt;/p&gt;&#xA;&lt;p&gt;A feature/pull request from &lt;em&gt;blackfriday&lt;/em&gt; got merged, meaning that two different lists are &lt;em&gt;not&lt;/em&gt;&#xA;merged into one:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;*&lt;/span&gt; A&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;*&lt;/span&gt; B&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;1.&lt;/span&gt; One&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;2.&lt;/span&gt; Two&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Is now correctly seen as two different lists.&lt;/p&gt;&#xA;&lt;p&gt;Further more a &lt;code&gt;&amp;lt;br/&amp;gt;&lt;/code&gt; is converted to a &lt;code&gt;&amp;lt;vspace/&amp;gt;&lt;/code&gt; in the XML output. This is especially&#xA;useful when you want a vertical space after a definition term. See &lt;code&gt;rfc/rfc7511.md&lt;/code&gt; for an example&#xA;on how to use this.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Subfigures in mmark</title>
      <link>https://miek.nl/2015/october/03/subfigures-in-mmark/</link>
      <pubDate>Sat, 03 Oct 2015 13:24:00 +0000</pubDate>
      <guid>https://miek.nl/2015/october/03/subfigures-in-mmark/</guid>
      <description>&lt;p&gt;For XML2RFC version 3 there is a new &lt;a href=&#34;https://tools.ietf.org/html/draft-hoffman-xml2rfc-23#section-2.25&#34;&gt;extended figure element&lt;/a&gt;,&#xA;namely: it can contain &lt;em&gt;multiple&lt;/em&gt; &lt;code&gt;&amp;lt;artwork&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;sourcecode&amp;gt;&lt;/code&gt; (new in v3) elements.&#xA;This in turn meant that mmark needed some way to signal &amp;ldquo;these artworks belong together&amp;rdquo;.&#xA;Now &lt;a href=&#34;http://scholarlymarkdown.com/Scholarly-Markdown-Guide.html&#34;&gt;Scholarly markdown&lt;/a&gt;&#xA;has a syntax for this. It uses a special section syntax and all images in that section become&#xA;subfigures of a larger figure. Disadvantage of this syntax is that it can not be&#xA;used in lists. Hence mmark uses a quote like solution, just like asides (&lt;code&gt;A&amp;gt;&lt;/code&gt;),&#xA;but for figures: we prefix the entire paragraph with &lt;code&gt;F&amp;gt;&lt;/code&gt; .&lt;/p&gt;</description>
    </item>
    <item>
      <title>Callouts in Figures in Mmark</title>
      <link>https://miek.nl/2015/september/27/callouts-in-figures-in-mmark/</link>
      <pubDate>Sun, 27 Sep 2015 14:02:00 +0000</pubDate>
      <guid>https://miek.nl/2015/september/27/callouts-in-figures-in-mmark/</guid>
      <description>&lt;p&gt;The use of callouts in Mmark came from&#xA;&lt;a href=&#34;http://www.methods.co.nz/asciidoc/chunked/ch20.html&#34;&gt;Asciidoc&lt;/a&gt;, they are &amp;ldquo;&amp;hellip;&#xA;a mechanism for annotating verbatim text&amp;rdquo;. In mmark they work like this.&lt;/p&gt;&#xA;&lt;p&gt;In a codeblocks you can use &lt;code&gt;&amp;lt;1&amp;gt;&lt;/code&gt;, or &lt;code&gt;&amp;lt;2&amp;gt;&lt;/code&gt;, etc. to create a callout. After the&#xA;codeblock/figure you can reference it. An example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    Code  &amp;lt;1&amp;gt;&#xA;    More  &amp;lt;1&amp;gt;&#xA;    Not a callout \&amp;lt;3&amp;gt;&#xA;&#xA;As you can see in &amp;lt;1&amp;gt; but not in \&amp;lt;1&amp;gt;. There is no &amp;lt;3&amp;gt;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will be rendered as:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Lists in lists with style</title>
      <link>https://miek.nl/2015/september/24/lists-in-lists-with-style/</link>
      <pubDate>Thu, 24 Sep 2015 11:56:00 +0000</pubDate>
      <guid>https://miek.nl/2015/september/24/lists-in-lists-with-style/</guid>
      <description>&lt;p&gt;Mmark is a markdown dialect for writing RFCs (or books!). The main reason it&#xA;exists is because the IETF is developing a new XML format (version 3) for&#xA;writing RFCs. This new format is &lt;em&gt;way&lt;/em&gt; more powerful, so sadly&#xA;&lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;Pandoc2rfc&lt;/a&gt; does not cut it anymore.&lt;/p&gt;&#xA;&lt;p&gt;Right now &lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;mmark&lt;/a&gt; fully supports writing&#xA;RFCs in XML2RFC version 2, but anything written can also be converted to&#xA;the (work-in-progress) XML2RFC version 3 format. In a series of blog posts&#xA;I will detail some of the features, such as list styling while remaining upwards&#xA;compatible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Markdown for XML2RFC v3 - Update</title>
      <link>https://miek.nl/2014/december/18/markdown-for-xml2rfc-v3-update/</link>
      <pubDate>Thu, 18 Dec 2014 22:46:00 +0000</pubDate>
      <guid>https://miek.nl/2014/december/18/markdown-for-xml2rfc-v3-update/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;And another update (2015-01-12)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is a follow up the &lt;a href=&#34;http://miek.nl/posts/2014/Nov/27/markdown-for-xml2rfc-v3/&#34;&gt;previous article&lt;/a&gt;&#xA;about using markdown for XML2RFC. The syntax has been changed and more features&#xA;have been implement. And my&#xA;&lt;a href=&#34;https://github.com/miekg/blackfriday&#34;&gt;blackfriday&lt;/a&gt; fork has been renamed&#xA;&lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;mmark&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&#34;https://github.com/miekg/mmark/blob/master/mmark2rfc.txt&#34;&gt;this document&lt;/a&gt; for&#xA;an up to date syntax of mmark. A short summery will be given here.&lt;/p&gt;&#xA;&lt;p&gt;New features are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Include raw XML references&lt;/li&gt;&#xA;&lt;li&gt;Allow HTML comments to be converted to &lt;code&gt;cref&lt;/code&gt;s&lt;/li&gt;&#xA;&lt;li&gt;Abbreviations (&lt;a href=&#34;https://michelf.ca/projects/php-markdown/extra/#abbr&#34;&gt;https://michelf.ca/projects/php-markdown/extra/#abbr&lt;/a&gt;), this is not used&#xA;in XML2RFC but seems a relatively standard markdown extension&lt;/li&gt;&#xA;&lt;li&gt;Example lists (&lt;a href=&#34;http://johnmacfarlane.net/pandoc/README.html#numbered-example-lists&#34;&gt;http://johnmacfarlane.net/pandoc/README.html#numbered-example-lists&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Quote attribution&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Also the possibility to convert &lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;pandoc2rfc&lt;/a&gt; documents&#xA;to mmark has been added (as a quick and dirty perl script + pandoc!):&lt;/p&gt;</description>
    </item>
    <item>
      <title>Markdown for XML2RFC v3</title>
      <link>https://miek.nl/2014/november/27/markdown-for-xml2rfc-v3/</link>
      <pubDate>Thu, 27 Nov 2014 22:50:00 +0000</pubDate>
      <guid>https://miek.nl/2014/november/27/markdown-for-xml2rfc-v3/</guid>
      <description>&lt;p&gt;Or&amp;hellip; how to write Markdown to generate XML that is valid XML2RFC v3. These&#xA;are some assorted notes and ideas&lt;/p&gt;&#xA;&lt;p&gt;Goal:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Self contained file with all information to generate a complete I-D;&lt;/li&gt;&#xA;&lt;li&gt;CommonMarkdown, with some extension.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I&amp;rsquo;m working on implementing these ideas in &lt;a href=&#34;https://github.com/miekg/blackfriday&#34;&gt;blackfriday&lt;/a&gt;.&#xA;The following has already been implemented:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Abstract;&lt;/li&gt;&#xA;&lt;li&gt;Citation;&lt;/li&gt;&#xA;&lt;li&gt;Document divisions;&lt;/li&gt;&#xA;&lt;li&gt;Index;&lt;/li&gt;&#xA;&lt;li&gt;File inclusion;&lt;/li&gt;&#xA;&lt;li&gt;Extra attributes (kramdown&amp;rsquo;s IAL.) (work-in-progress).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;document-meta-data&#34;&gt;Document meta data&lt;/h2&gt;&#xA;&lt;p&gt;In TOML - much easier than YAML for instance, lines are starting with %. We don&amp;rsquo;t need to specify the citations&#xA;here because:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
