<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>DCC Viewer Production Test</title>
  <link rel="stylesheet" href="/dist/style.css" />
</head>
<body>
<div id="app"></div>
<script type="module">
  import { init } from '/dist/dccviewer-js.es.js';

  // Use your production bundle's init() to load XML.
  // For testing, load the XML from a local file or hard-code a test string.
  fetch('/data/sin_acceleration_example_dcc_WithExampleConformatyStatmentXLT.xml')
          .then(response => response.text())
          .then(xmlStr => {
            init(xmlStr, { containerId: 'app', language: 'en' });
          })
          .catch(err => console.error('Error loading XML file:', err));
</script>
</body>
</html>