# ==========================================================================
#                ____  _ _   _____   __  ______
#                | __ )(_) |_|_   _|__\ \/ / ___|___  _ ____   __
#                |  _ \| | '_ \| |/ _ \  / |   / _ \| '_ \ \ / /
#                | |_) | | |_) | |  __//  \ |__| (_) | | | \ V /
#                |____/|_|_.__/|_|\___/_/\_\____\___/|_| |_|\_/
#
#                          ---  BibTeX Converter  ---
#                   https://www.nntb.no/~dreibh/bibtexconv/
# ==========================================================================
#
# BibTeXConv XHTML 1.1 Export Example
# Copyright (C) 2010-2026 by Thomas Dreibholz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Contact: thomas.dreibholz@gmail.com

# ###########################################################################
# #### Export to XHTML 1.1                                               ####
# ###########################################################################

# ====== Set header and trailer of each publication entry ===================
# ----- Encode strings in XML style, e.g. <, >, &, etc.----------------------
xmlStyle
# ----- Non-breakable space character and line-break ------------------------
nbsp  
linebreak 

# ------ Write the HTML header ----------------------------------------------
echo <?xml version="1.0" encoding="utf-8" ?>\n
echo <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n
echo \n
echo \n
echo Publications\n
echo \n
echo \n
echo \n
echo \n
echo \n
echo \n
echo \n

echo \n

echo \n

echo \n

echo \n\n

echo \n
echo 
Publications
\n\n

echo \n\n

# ====== This is the printing template ======================================
templatenew

# ***** Begin of Subsection: YEAR *******************************************
# template+ [%{begin-subdivision-year}
%{year}

\n\n]

# ****** Begin of Entry *****************************************************
template+ 
- 
# ****** Begin of Main Block ************************************************
template+ 
template+ 

# ***** Authors *************************************************************
# Begin of author loop:
template+ %{begin-author-loop}
# Separator, for first/last/middle author:
template+ [%{is-first-author?}|%{is-last-author?} and |; ]
# Add the current author form the loop:
# Execute the script "./get-author-url", which reads authors.list and provides
# in the author with hyperlink, if a URL is defined. Otherwise, it just fills
# in the author name.
template+ [./get-author-url authors.list '%{author-family-name}[, %{author-give-name}]' '%{author-family-name}[, %{author-give-name}]'%{exec}]
# End of author loop:
template+ %{end-author-loop}
template+ :

# ***** Title ***************************************************************
template+ <span[ xml:lang="%{xml-language}" lang="%{xml-language}"]>
# If there is a URL, make a hyperlink, else only print the title:
template+  [``<a[ type="%{url-mime}"] href="%{url}">%{title}</a>´´|``%{title}´´]
template+ 

# ****** Document details ***************************************************
# The document details appear in braces ( ... ), if they are available.
# Add opening parenthesis "(", if "url" or "language" are set:
template+ [%{url}%{is-not?}%{url-type}%{is-not?HTML} \(|%{language}%{is-not?} \(]

# ------ Download -----------------------------------------------------------
template+ [
# Only show file type and length for non-HTML types:
template+ [%{url-type}%{is-not?HTML}
template+ [%{url-type}]
template+ [, %{url-size-kib}~KiB]
template+ ]
# Use plural or singular for number of pages: "n pages", or just "1 page":
template+ [(%{numpages}%{is-not?1}), %{numpages}~pages|, %{numpages}~page]
template+ ]
# ------ Language -----------------------------------------------------------
template+ [%{url}%{is-not?}[%{language}%{is-not?}, ]]
template+ [
template+ [%{content-language}|%{language}]%{is?german}auf Deutsch|
template+ [%{content-language}|%{language}]%{is?ngerman}auf Deutsch|
template+ [%{content-language}|%{language}]%{is?norsk}på norsk|
template+ [%{content-language}|%{language}]%{is?chinese}in Chinese|
template+ [%{content-language}|%{language}]%{is?french}au français|
template+ [%{content-language}|%{language}]%{is?english}in English|
template+ in %{content-language}|
template+ in %{language}
template+ ]

# Add closing parenthesis ")", if "url" or "language" are set:
template+ [%{url}%{is-not?}%{url-type}%{is-not?HTML}\)|%{language}%{is-not?}\)]

# ***** Bibliographic data of publication ***********************************
template+ [, %{how-published}]
template+ [, in %{journal}]
template+ [, in %{booktitle}]
template+ [
template+ , %{type}[~%{number}][, %{series}][, vol.~%{volume}][, pp.~%{pages}]|
template+ [, %{series}][, vol.~%{volume}][, no.~%{number}][, pp.~%{pages}]
template+ ]
template+ [, %{publisher}]
template+ [, %{school}]
template+ [, %{institution}]
template+ [, URN~%{urn} (https://nbn-resolving.org/%{urn})]
template+ [, DOI~%{doi} (https://dx.doi.org/%{doi})]
template+ [, %{isbn}]
template+ [, %{issn}]
template+ [, %{address}]
template+ [, %{note}]
template+ [, [%{month-name}~%{day}, |%{month-name}~]%{year}]
template+ .

# ****** Awards *************************************************************
template+ [ %{custom-1}.]

# ****** End of Main Block **************************************************
template+ 
template+ 

# ***** Details block *******************************************************
# A details block is to be added, if "keywords", "abstract", "url" or
# "url-md5" exist:
template+ [
template+ [%{keywords}][%{abstract}][%{url}][%{url-md5}]%{is-not?}\n
template+ 
template+ [
template+ 
Keywords:[ ]
template+ <span[ xml:lang="%{xml-language}"]>%{keywords}
template+ 
template+ ]
template+ [
template+ 
Abstract:[ ]
template+ <span[ xml:lang="%{xml-language}"]>%{abstract}
template+ 
template+ ]
template+ [
template+ 
URL:[ ]
template+ <a[ type="%{url-mime}"] href="%{url}">%{url}
template+ 
template+ ]
template+ [
template+ 
MD5:[ ]%{url-md5}
template+ ]
template+ 
\n
template+ ]

# ****** End of Entry *******************************************************
template+ \n\n

# ***** End of Subsection: YEAR *********************************************
# template+ [%{end-subdivision-year}
\n\n]

# ====== Finally, export all selected publications ==========================

echo 
RFCs related to RSerPool
echo 
clear
cite RFC3237
cite rfc-rserpool-overview
cite rfc-rserpool-asap
cite rfc-rserpool-enrp
cite rfc-rserpool-common-param
cite rfc-rserpool-policies
cite rfc-rserpool-mib
cite rfc-rserpool-threats
sort year/D month/D day/D title/A
export
echo 

echo 
Internet Drafts (IDs) related to RSerPool
echo 

clear
cite draft-ietf-rserpool-api

cite draft-dreibholz-rserpool-asap-hropt
cite draft-dreibholz-rserpool-enrp-takeover
cite draft-dreibholz-rserpool-delay
cite draft-coene-rserpool-applic-ipfix
cite draft-dreibholz-rserpool-applic-distcomp
cite draft-dreibholz-rserpool-applic-mobility
cite draft-dreibholz-rserpool-score

cite draft-xie-rserpool-redundancy-model
cite draft-ietf-rserpool-applic
cite draft-ietf-rserpool-comp
cite draft-ietf-rserpool-arch
cite draft-ietf-rserpool-tcpmapping
cite draft-ietf-rserpool-service

sort year/D month/D day/D title/A
export
echo 

echo \n\n

# ====== Write the HTML footer ==============================================
echo \n
echo \n
