# ==========================================================================
#                ____  _ _   _____   __  ______
#                | __ )(_) |_|_   _|__\ \/ / ___|___  _ ____   __
#                |  _ \| | '_ \| |/ _ \  / |   / _ \| '_ \ \ / /
#                | |_) | | |_) | |  __//  \ |__| (_) | | | \ 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

# Select entries:
# citeAll
cite Globecom2010
cite LCN2005-EdgeDevice
cite PAMS2014-LEDBAT
cite PAMS2013-NorNet
cite CAIA2014
cite Dre2012
cite LinuxTag2005
cite CRNA-Rapport2022
cite CommMag2022

# Usually, there should be a more fine-granular selection.
# For convenience, it is useful to make them in included files.
#include dreibholz-others.export
#include dreibholz-papers.export
#include dreibholz-rfcs.export
#include dreibholz-thesises.export
#include dreibholz-id-workinggroup.export
#include dreibholz-id-individual.export
#include dreibholz-journals.export
#include dreibholz-posters-and-demos.export
#include dreibholz-talks.export

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

# ###########################################################################
# #### 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 ==========================
export

echo \n\n

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