html function

XFormsElement html(
  1. XFormsElement head,
  2. XFormsElement body, {
  3. Map<String, String> additionalNamespaces = const {},
})

The <h:html> root with the standard ODK namespaces plus any additionalNamespaces (prefix → URI).

Implementation

XFormsElement html(
  XFormsElement head,
  XFormsElement body, {
  Map<String, String> additionalNamespaces = const {},
}) {
  final extra = additionalNamespaces.entries
      .map((e) => ' xmlns:${e.key}="${e.value}"')
      .join();
  return t('h:html $_standardNamespaces$extra', [head, body]);
}