% PDF management has to be active for the attachments of regulatory-attachments.
% Declared here only when the commandline did not do it already, so that a
% conformance flavour can be declared in front of this file (see test/Makefile),
% and not at all under tex4ht: PDF management pulls in the latex-lab list code,
% which leaves tex4ht nothing to turn a paras item into. \HCode is defined by
% the tex4ht run before this file is read, which is what the test is for.
\ifdefined\HCode\else\IfDocumentMetadataTF{}{\DocumentMetadata{}}\fi
\documentclass[12pt,english]{article}
\usepackage{babel}
\usepackage{regulatory}
\usepackage{lipsum}

\newcounter{lip}
\setcounter{lip}{1}
\newcommand\textfill{\lipsum[\arabic{lip}]\stepcounter{lip}}

\newcommand\translation[2]{#1}

\newcommand\definitionlabel[1]{~(see #1)}

\masterdocument[ex1-]{example1-en}{%
    defs=example1,%
    author=E. Nijenhuis,%
    subject= Example One,%
    description = The first example document,
    footnote label = Attachment:~,
    ref label=of Example One,
    def label=\definitionlabel
}
\loadglsdefs{example2}

% The third route of the definitions chapter: declared here, no second file
% and no second program.
\newdefinition{inline}{Private deed}{A definition declared in the document itself, without a bib file.}

% PDF/UA wants a dc:title, which \title does not set.
\hypersetup{pdftitle={Example Two}}

\begin{document}
    \input{example2}
\end{document}
