<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pandoc on Miek Gieben</title>
    <link>https://miek.nl/tags/pandoc/</link>
    <description>Recent content in Pandoc on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Wed, 17 Jul 2013 15:04:00 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/pandoc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rfc2pandoc</title>
      <link>https://miek.nl/2013/july/17/rfc2pandoc/</link>
      <pubDate>Wed, 17 Jul 2013 15:04:00 +0000</pubDate>
      <guid>https://miek.nl/2013/july/17/rfc2pandoc/</guid>
      <description>&lt;p&gt;Have an I-D laying around and sick of typing XML? You want to use Pandoc2rfc, but you don&amp;rsquo;t want to manually&#xA;convert the XML (or the generated text) into Pandoc? Well, now finally you can do this automatically. I created a little&#xA;&lt;a href=&#34;https://raw.github.com/miekg/pandoc2rfc/master/plain.xsl&#34;&gt;stylesheet&lt;/a&gt;, that can be used to transform&#xA;the XML to Pandoc. Note the transformation is not perfect, there are a few cases where you still have to&#xA;edit the Pandoc, most notably:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Pandoc2rfc update(s)</title>
      <link>https://miek.nl/2013/july/03/pandoc2rfc-updates/</link>
      <pubDate>Wed, 03 Jul 2013 17:45:00 +0000</pubDate>
      <guid>https://miek.nl/2013/july/03/pandoc2rfc-updates/</guid>
      <description>&lt;p&gt;In this post you can find pointers to documentation and source code for the pandoc2rfc&#xA;package.&lt;/p&gt;&#xA;&lt;dl&gt;&#xA;&lt;dt&gt;Pandoc2rfc source code:&lt;/dt&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/miekg/pandoc2rfc&#34;&gt;github.com/miekg/pandoc2rfc&lt;/a&gt;, if you are not using&#xA;the shell script (&lt;code&gt;pandoc2rfc&lt;/code&gt;), you&#xA;should just copy &lt;code&gt;transform.xsl&lt;/code&gt; and perform the conversions manually (see documentation pointers&#xA;below)&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dt&gt;Packages:&lt;/dt&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;for both &lt;code&gt;xml2rfc&lt;/code&gt; and &lt;code&gt;pandoc2rfc&lt;/code&gt; can be found at &lt;a href=&#34;https://launchpad.net/~miek/&amp;#43;archive/pandoc2rfc&#34;&gt;launchpad&lt;/a&gt;, these can probably also be installed on Debian and definitely on older Ubuntu versions.&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dt&gt;Documentation:&lt;/dt&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;This &lt;a href=&#34;http://tools.ietf.org/html/draft-gieben-pandoc2rfc-02&#34;&gt;draft&lt;/a&gt; is the canonical&#xA;documentation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Pandoc2rfc and xml2rfc</title>
      <link>https://miek.nl/2013/january/22/pandoc2rfc-and-xml2rfc/</link>
      <pubDate>Tue, 22 Jan 2013 12:23:00 +0000</pubDate>
      <guid>https://miek.nl/2013/january/22/pandoc2rfc-and-xml2rfc/</guid>
      <description>&lt;p&gt;Thanks to the help of Marc Petit-Huguenin I have been able to create (and upload)&#xA;debian packages (install fine on Ubuntu) for Pandoc2rfc and xml2rfc. For Pandoc2rfc&#xA;I choose to add a little shell script that calls pandoc and xml2rfc for you. So&#xA;creating an I-D is as simple as:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;pandoc2rfc *.mkd    # or a few other extensions&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The shell script depends on &lt;code&gt;transform.xsl&lt;/code&gt; to be installed in &lt;code&gt;/usr/lib/pandoc2rfc/&lt;/code&gt;,&#xA;allthough this can be overridden with a flag. When pandoc2rfc is installed you don&amp;rsquo;t&#xA;have carry the supports scripts inside your I-D&amp;rsquo;s source repo. My pandoc2rfc I-D&#xA;source directory now only has: &lt;code&gt;template.xml&lt;/code&gt;, &lt;code&gt;abstract.pdc&lt;/code&gt;,  &lt;code&gt;back.pdc&lt;/code&gt;, &lt;code&gt;middle.pdc&lt;/code&gt; and a&#xA;&lt;code&gt;bib/&lt;/code&gt; directory with references.&lt;/p&gt;</description>
    </item>
    <item>
      <title>draft-gieben-creating-rfcs-pandoc-00.txt</title>
      <link>https://miek.nl/2012/june/04/draft-gieben-creating-rfcs-pandoc-00.txt/</link>
      <pubDate>Mon, 04 Jun 2012 09:20:00 +0000</pubDate>
      <guid>https://miek.nl/2012/june/04/draft-gieben-creating-rfcs-pandoc-00.txt/</guid>
      <description>&lt;p&gt;Maybe I&amp;rsquo;ll try to send it in as a individual submission.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/miekg/denialid&#34;&gt;Source repository at github&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://miek.nl/downloads/2012/draft-gieben-creating-rfcs-pandoc-00.txt&#34;&gt;As txt download&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/miekg/pandoc2rfc&#34;&gt;Pandoc2rfc code repository&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&#xA;&#xA;      Network Working Group                                          R. Gieben&#xA;      Internet-Draft                                                      SIDN&#xA;      Intended status: Informational                                April 2012&#xA;      Expires: October 3, 2012&#xA;&#xA;&#xA;                   Creating Internet Drafts and RFCs using Pandoc&#xA;                        draft-gieben-creating-rfcs-pandoc-00&#xA;&#xA;      Abstract&#xA;&#xA;         This memo presents a technique for using Pandoc syntax as a source&#xA;         format for documents in the Internet-Drafts (I-Ds) and Request for&#xA;         Comments (RFC) series.&#xA;&#xA;         Using Pandoc syntax this way minimizes the need to directly edit the&#xA;         raw XML, but it does not completely make the XML invisible.&#xA;&#xA;      Status of this Memo&#xA;&#xA;         This document is an Internet-Draft and is NOT offered in accordance&#xA;         with Section 10 of RFC 2026, and the author does not provide the IETF&#xA;         with any rights other than to publish as an Internet-Draft.&#xA;&#xA;         Internet-Drafts are working documents of the Internet Engineering&#xA;         Task Force (IETF).  Note that other groups may also distribute&#xA;         working documents as Internet-Drafts.  The list of current Internet-&#xA;         Drafts is at http://datatracker.ietf.org/drafts/current/.&#xA;&#xA;         Internet-Drafts are draft documents valid for a maximum of six months&#xA;         and may be updated, replaced, or obsoleted by other documents at any&#xA;         time.  It is inappropriate to use Internet-Drafts as reference&#xA;         material or to cite them other than as &amp;#34;work in progress.&amp;#34;&#xA;&#xA;         This Internet-Draft will expire on October 3, 2012.&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 1]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;      Table of Contents&#xA;&#xA;         1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 3&#xA;         2.  Using Pandoc for RFC creation . . . . . . . . . . . . . . . . . 4&#xA;         3.  Syntax  . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5&#xA;           3.1.  References  . . . . . . . . . . . . . . . . . . . . . . . . 7&#xA;         4.  Security Considerations . . . . . . . . . . . . . . . . . . . . 8&#xA;         5.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 8&#xA;         6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . 8&#xA;         7.  Normative References  . . . . . . . . . . . . . . . . . . . . . 8&#xA;         Author&amp;#39;s Address  . . . . . . . . . . . . . . . . . . . . . . . . . 9&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 2]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;      1.  Introduction&#xA;&#xA;         This memo presents a technique for using Pandoc [1] syntax as a&#xA;         source format for documents in the Internet-Drafts (I-Ds) and Request&#xA;         for Comments (RFC) series.&#xA;&#xA;         Pandoc is an &amp;#34;almost plain text&amp;#34; format, which is inspired by&#xA;         Markdown Syntax [2] and therefor particularly well suited for editing&#xA;         RFC-like documents.&#xA;&#xA;         The power of Pandoc also comes from the fact that it can be&#xA;         translated to numerous output formats, including, but not limited to:&#xA;         HTML, Markdown and &amp;#34;docbook&amp;#34; XML.&#xA;&#xA;         In this case the Pandoc sources are converted to &amp;#34;docbook&amp;#34; XML.  This&#xA;         XML is then converted again, using an XSLT stylesheet, to XML&#xA;         suitable as input for &amp;#34;xml2rfc&amp;#34; [RFC2629].  The conversions are&#xA;         collectively called Pandoc2rfc [pandoc2rfc].&#xA;&#xA;         Pandoc2rfc is in some way amusing, as we start off with (almost)&#xA;         plain text, use elaborate XML and end up with plain text again, as&#xA;         shown in Figure 1.&#xA;&#xA;                            Attempt to justify Pandoc2rfc.&#xA;&#xA;              +-------------------+   Pandoc   +---------+&#xA;              | ALMOST PLAIN TEXT |   ------&amp;gt;  | DOCBOOK |&#xA;              +-------------------+            +---------+&#xA;                            |                       |&#xA;              non-existent  |                       | XSLT (transform.xsl)&#xA;               quicker way  |                       |&#xA;                            v                       v&#xA;                    +------------+    xml2rfc  +---------+&#xA;                    | PLAIN TEXT |  &amp;lt;--------  | XML2RFC |&#xA;                    +------------+             +---------+&#xA;&#xA;                                       Figure 1&#xA;&#xA;         For the conversion to work the following tools and files need to be&#xA;         installed:&#xA;&#xA;         o  xml2rfc [3];&#xA;&#xA;         o  xsltproc [4] (or any other XSLT (v1) processor);&#xA;&#xA;         o  Pandoc [1];&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 3]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;         o  transform.xsl [5].&#xA;&#xA;&#xA;      2.  Using Pandoc for RFC creation&#xA;&#xA;         As said in the introduction the use of Pandoc does not eliminate the&#xA;         need to setup some files in XML.  Particularly the &amp;#34;&amp;lt;front&amp;gt;&amp;#34; matter&#xA;         of &amp;#34;xml2rfc&amp;#34; can not be codified in Pandoc, so a template like this&#xA;         is still needed:&#xA;&#xA;                                A minimal template.xml.&#xA;&#xA;           &amp;lt; ?xml version=&amp;#39;1.0&amp;#39; ?&amp;gt;&#xA;           &amp;lt;!DOCTYPE rfc SYSTEM &amp;#39;rfc2629.dtd&amp;#39;&amp;gt;&#xA;&#xA;           &amp;lt;rfc ipr=&amp;#39;trust200902&amp;#39; docName=&amp;#39;draft-gieben-pandoc-rfcs-01&amp;#39;&amp;gt;&#xA;            &amp;lt;front&amp;gt;&#xA;               &amp;lt;title&amp;gt;Creating Internet Drafts and RFCs using Pandoc&amp;lt;/title&amp;gt;&#xA;               &amp;lt;abstract&amp;gt;&#xA;                   &amp;lt; ?rfc include=&amp;#34;abstract.xml&amp;#34;?&amp;gt;&#xA;               &amp;lt;/abstract&amp;gt;&#xA;&#xA;               &amp;lt;author initials=&amp;#34;R.&amp;#34; surname=&amp;#34;Gieben&amp;#34;&#xA;                   fullname=&amp;#34;R. (Miek) Gieben&amp;#34;&amp;gt;&#xA;                   &amp;lt;organization&amp;gt;SIDN&amp;lt;/organization&amp;gt;&#xA;               &amp;lt;/author&amp;gt;&#xA;&#xA;           &amp;lt;/front&amp;gt;&#xA;&#xA;           &amp;lt;middle&amp;gt;&#xA;               &amp;lt; ?rfc include=&amp;#34;middle.xml&amp;#34;?&amp;gt;&#xA;           &amp;lt;/middle&amp;gt;&#xA;&#xA;           &amp;lt;back&amp;gt;&#xA;               &amp;lt;references title=&amp;#34;Normative References&amp;#34;&amp;gt;&#xA;                   &amp;lt; ?rfc include=&amp;#34;reference.RFC.2629.xml&amp;#34;?&amp;gt;&#xA;               &amp;lt;/references&amp;gt;&#xA;               &amp;lt; ?rfc include=&amp;#34;back.xml&amp;#34;?&amp;gt;&#xA;           &amp;lt;/back&amp;gt;&#xA;           &amp;lt;/rfc&amp;gt;&#xA;&#xA;                                       Figure 2&#xA;&#xA;         The template shown in Figure 2 includes 3 (not counting the&#xA;         reference) XML files:&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 4]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;         1.  abstract.xml;&#xA;&#xA;         2.  middle.xml;&#xA;&#xA;         3.  back.xml.&#xA;&#xA;         To create the complete document you will need to edit three Pandoc&#xA;         files and the template, (&amp;#34;.pdc&amp;#34; is the extension for Pandoc files):&#xA;&#xA;         1.  abtract.pdc;&#xA;&#xA;         2.  middle.pdc;&#xA;&#xA;         3.  back.pdc;&#xA;&#xA;         4.  template.xml (probably a fairly static file once setup).&#xA;&#xA;         To convert, for instance, the &amp;#34;middle.pdc&amp;#34; file to XML the following&#xA;         command is executed on a Unix-like system:&#xA;&#xA;         pandoc -t docbook -s middle.pdc|xsltproc transform.xsl - &amp;gt; middle.xml&#xA;&#xA;         This is also done for &amp;#34;abstract.pdc&amp;#34; and &amp;#34;back.pdc&amp;#34;.  After which&#xA;         &amp;#34;xml2rfc&amp;#34; is called:&#xA;&#xA;         xml2rfc template.xml draft.txt&#xA;&#xA;         Which creates the final output.  Of course this process can be&#xA;         automated using a tool like &amp;#34;make&amp;#34;.&#xA;&#xA;         When using Pandoc2rfc consider adding the following sentence to an&#xA;         Acknowledgements section:&#xA;&#xA;         This document was prepared using Pandoc2rfc.&#xA;&#xA;&#xA;      3.  Syntax&#xA;&#xA;         Almost all features of &amp;#34;xml2rfc&amp;#34; are supported.  A notable exception&#xA;         is the &amp;#34;crefs&amp;#34; tag, but HTML comments are allowed within Pandoc&#xA;         sources so they may be used as a substitute.&#xA;&#xA;         Sections are started by using a header [README#headers].&#xA;&#xA;         Paragraphs are separated by an empty line.  Hanging paragraphs are&#xA;         entered by using a definition list [README#deflists].&#xA;&#xA;         Footnotes are not supported.  Pandoc2rfc (ab)uses the footnote syntax&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 5]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;         to support indices.  Block quotes are not directly supported in&#xA;         &amp;#34;xml2rfc&amp;#34; so they get translated to a hanging paragraph.&#xA;&#xA;         A good number of different type of lists are supported, they are&#xA;         translated according to the following table.&#xA;&#xA;                      List conversions from Pandoc to &amp;#34;xml2rfc&amp;#34;.&#xA;&#xA;          +---------------------------------+------------------------------+&#xA;          | Pandoc                          | Converts to                  |&#xA;          +---------------------------------+------------------------------+&#xA;          | &amp;#34;* First item&amp;#34;                  | &amp;#34;&amp;lt;list style=&amp;#34;symbol&amp;#34;&amp;gt;&amp;#34;      |&#xA;          | &amp;#34;1. First item&amp;#34;                 | &amp;#34;&amp;lt;list style=&amp;#34;numbers&amp;#34;&amp;gt;&amp;#34;     |&#xA;          | &amp;#34;#. First item&amp;#34;                 | &amp;#34;&amp;lt;list style=&amp;#34;empty&amp;#34;&amp;gt;&amp;#34;       |&#xA;          | &amp;#34;a. First item&amp;#34;                 | &amp;#34;&amp;lt;list style=&amp;#34;letters&amp;#34;&amp;gt;&amp;#34;     |&#xA;          | &amp;#34;A. First item&amp;#34;                 | &amp;#34;list style=&amp;#34;format %C.&amp;#34;&amp;gt;&amp;#34;   |&#xA;          | &amp;#34;i. First item&amp;#34;                 | &amp;#34;&amp;lt;list style=&amp;#34;format %i.&amp;#34;&amp;gt;&amp;#34;  |&#xA;          | &amp;#34;I. First item&amp;#34;                 | &amp;#34;&amp;lt;list style=&amp;#34;format (%d)&amp;#34;&amp;gt;&amp;#34; |&#xA;          +---------------------------------+------------------------------+&#xA;&#xA;                                        Table 1&#xA;&#xA;         A figure or artwork is created with a paragraph that is indented with&#xA;         four spaces [README#codeblocks].  A figure caption is always&#xA;         translated to a &amp;#34;&amp;lt;preamble&amp;gt;&amp;#34;.  A figure caption is created by using&#xA;         this text as the last line in the artwork: &amp;#34;Figure: ...caption&#xA;         text...&amp;#34;&#xA;&#xA;         The different tables [README#tables] Pandoc supports are all mapped&#xA;         to &amp;#34;&amp;lt;texttable&amp;gt;&amp;#34;.  A table caption is always translated to a&#xA;         &amp;#34;&amp;lt;postamble&amp;gt;&amp;#34;.  A table caption is added by using &amp;#34;Table: ...caption&#xA;         text...&amp;#34; after a table.&#xA;&#xA;         The caption is _always_ translated to a &amp;#34;&amp;lt;preamble&amp;gt;&amp;#34;.  The&#xA;         &amp;#34;&amp;lt;postamble&amp;gt;&amp;#34; tag isn&amp;#39;t supported.  If a table has a caption, it will&#xA;         *also* get a reference.  See Section 3.1 for the details.&#xA;&#xA;         As footnotes are not supported in RFCs the syntax in Pandoc is used&#xA;         to support an index.  Footnotes in Pandoc (and thus an index in the&#xA;         RFC) are entered in two steps, you have a marker in the text, and&#xA;         later you give actual footnote text.  Like this:&#xA;&#xA;         [^1]&#xA;&#xA;         [^1]: footnote text&#xA;&#xA;         This text translates to: &amp;#34;&amp;lt;iref item=&amp;#34;footnote text&amp;#34;/&amp;gt;&amp;#34;.  It points&#xA;         to the page where to footnote marker was placed.  Sub items are also&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 6]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;         supported.  Use an exclamation mark (&amp;#34;!&amp;#34;) to separate them: &amp;#34;[^1]:&#xA;         item!sub item&amp;#34;.&#xA;&#xA;      3.1.  References&#xA;&#xA;         References to section are created automatically by Pandoc and the&#xA;         normal Pandoc rules are followed.&#xA;&#xA;                    Reference conversions from Pandoc to &amp;#34;xml2rfc&amp;#34;.&#xA;&#xA;         +-------------------------+------------------------------+----------+&#xA;         | Pandoc                  | Converts to                  | Type     |&#xA;         +-------------------------+------------------------------+----------+&#xA;         | &amp;#34;[Click](URL)&amp;#34;          | &amp;#34;&amp;lt;eref                       | External |&#xA;         |                         | target=&amp;#34;URL&amp;#34;&amp;gt;Click...&amp;#34;       |          |&#xA;         | &amp;#34;[See](#local)&amp;#34;         | &amp;#34;&amp;lt;xref                       | Internal |&#xA;         |                         | target=&amp;#34;local&amp;#34;&amp;gt;See...&amp;#34;       |          |&#xA;         | &amp;#34;[](#RFC2119)&amp;#34;          | &amp;#34;&amp;lt;xref target=&amp;#34;RFC2119&amp;#34;/&amp;gt;&amp;#34;   | Citation |&#xA;         +-------------------------+------------------------------+----------+&#xA;&#xA;                                        Table 2&#xA;&#xA;         Internal references will add &amp;#34;Section:&amp;#34;, &amp;#34;Table:&amp;#34; or &amp;#34;Figure:&amp;#34;&#xA;         depending on where it points to (this is the default behavior of&#xA;         &amp;#34;xml2rfc&amp;#34;).  For the citations to work the reference anchor must be&#xA;         known (i.e. the RFC reference.xml must be included in the template).&#xA;&#xA;         References to tables and figures are not handled by Pandoc, this&#xA;         behavior is implemented in the XSLT stylesheets, therefor the rules&#xA;         are slightly different (and less flexible).  A figure and table only&#xA;         get a reference when they have a caption.  If a figure has a caption&#xA;         it is also centered on the page.&#xA;&#xA;         The reference anchor attribute will be: &amp;#34;fig:&amp;#34; + &amp;#34;first 10&#xA;         (normalized) characters from the caption&amp;#34; for figures and &amp;#34;tab:&amp;#34; +&#xA;         &amp;#34;first 10 (normalized) characters from the caption&amp;#34; for tables.&#xA;         Normalized is:&#xA;&#xA;         o  Take the first 10 characters of the caption (i.e. this is the text&#xA;            _after_ the string &amp;#34;Figure:&amp;#34; or &amp;#34;Table:&amp;#34;);&#xA;&#xA;         o  Spaces are translated to a minus &amp;#34;-&amp;#34;;&#xA;&#xA;         o  Uppercase letters translated to lowercase.&#xA;&#xA;         For example a figure with a caption &amp;#34;Figure: A minimal template&amp;#34; will&#xA;         get the anchor &amp;#34;fig:a-minimal-&amp;#34;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 7]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;      4.  Security Considerations&#xA;&#xA;         This memo raises no security issues.&#xA;&#xA;&#xA;      5.  IANA Considerations&#xA;&#xA;         This memo has no actions for IANA.&#xA;&#xA;&#xA;      6.  Acknowledgements&#xA;&#xA;         The following people have helped to make Pandoc2rfc what it is today:&#xA;         Benno Overeinder, Erlend Hamnaberg, Matthijs Mekking, and Trygve&#xA;         Laugstoel.&#xA;&#xA;         This document was prepared using Pandoc2rfc.&#xA;&#xA;&#xA;      7.  Normative References&#xA;&#xA;         [README#codeblocks]&#xA;                    MacFarlane, J., &amp;#34;PANDOC Documentation&amp;#34;, 2006, &amp;lt;http://&#xA;                    johnmacfarlane.net/pandoc/&#xA;                    README.html#indented-code-blocks&amp;gt;.&#xA;&#xA;         [README#deflists]&#xA;                    MacFarlane, J., &amp;#34;PANDOC Documentation&amp;#34;, 2006, &amp;lt;http://&#xA;                    johnmacfarlane.net/pandoc/README.html#definition-lists&amp;gt;.&#xA;&#xA;         [README#headers]&#xA;                    MacFarlane, J., &amp;#34;PANDOC Documentation&amp;#34;, 2006,&#xA;                    &amp;lt;http://johnmacfarlane.net/pandoc/README.html#headers&amp;gt;.&#xA;&#xA;         [README#tables]&#xA;                    MacFarlane, J., &amp;#34;PANDOC Documentation&amp;#34;, 2006,&#xA;                    &amp;lt;http://johnmacfarlane.net/pandoc/README.html#tables&amp;gt;.&#xA;&#xA;         [RFC2629]  Rose, M., &amp;#34;Writing I-Ds and RFCs using XML&amp;#34;, RFC 2629,&#xA;                    June 1999.&#xA;&#xA;         [pandoc2rfc]&#xA;                    Gieben, R., &amp;#34;Pandoc2rfc&amp;#34;, 2012,&#xA;                    &amp;lt;http://github.com/miekg/pandoc2rfc&amp;gt;.&#xA;&#xA;         [1]  &amp;lt;http://johnmacfarlane.net/pandoc/&amp;gt;&#xA;&#xA;         [2]  &amp;lt;http://daringfireball.net/projects/markdown/&amp;gt;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 8]&#xA;&#xA;      Internet-Draft           Pandoc for RFC creation              April 2012&#xA;&#xA;&#xA;         [3]  &amp;lt;http://xml.resource.org/&amp;gt;&#xA;&#xA;         [4]  &amp;lt;http://xmlsoft.org/xslt/xsltproc2.html&amp;gt;&#xA;&#xA;         [5]  &amp;lt;https://raw.github.com/miekg/pandoc2rfc/master/transform.xsl&amp;gt;&#xA;&#xA;&#xA;      Author&amp;#39;s Address&#xA;&#xA;         R. (Miek) Gieben&#xA;         SIDN&#xA;         Meander 501&#xA;         Arnhem,   6825 MD&#xA;         NL&#xA;&#xA;         Phone:&#xA;         Email: miek@miek.nl&#xA;         URI:&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;      Gieben                   Expires October 3, 2012                [Page 9]&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>XSLT and sectN/section</title>
      <link>https://miek.nl/2012/january/08/xslt-and-sectn/section/</link>
      <pubDate>Sun, 08 Jan 2012 12:31:00 +0000</pubDate>
      <guid>https://miek.nl/2012/january/08/xslt-and-sectn/section/</guid>
      <description>&lt;p&gt;This &lt;a href=&#34;http://groups.google.com/group/pandoc-discuss/browse_thread/thread/90cc2ea23e3c93f3/880bb6e69274ec1d?show_docid=880bb6e69274ec1d&amp;amp;fwc=2&amp;amp;pli=1&#34;&gt;came up during a recent Pandoc&#xA;discussion&lt;/a&gt;.&#xA;The discussion was about outputting &lt;code&gt;&amp;lt;sectN&amp;gt;&lt;/code&gt; section styling when creating DocBook XML. Currently&#xA;Pandoc outputs nested &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;s.&lt;/p&gt;&#xA;&lt;p&gt;I argued you could easily change between the two formats and &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; is more flexible, so&#xA;just leave Pandoc as it is. But it allowed me to play with XSLT once more. With the following&#xA;results.&lt;/p&gt;&#xA;&lt;h1 id=&#34;translate-to-sectn&#34;&gt;Translate to sectN&lt;/h1&gt;&#xA;&lt;p&gt;This XSLT translates &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;sectN&amp;gt;&lt;/code&gt; where N is 5. If the sections are nested deeper&#xA;it switches to &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
