Skip to content

graphic as content of ref is ignored #73

@lb42

Description

@lb42

I have XML like this:

 <bibl n="16.3" xml:id="L0228" type="S_2_Drama_D._DRAMA" status="TEI-0">
     <graphic url="https://lb42.github.io/Lacy/media/teiLogo.jpg"></graphic>
     <ref target="https://lb42.github.io/Lacy/L0228.html">L0228 </ref>
      <ref target="https://raw.githubusercontent.com/lb42/Lacy/main/TEI/L0228.xml">
      <graphic url="https://lb42.github.io/Lacy/media/teiLogo.jpg"/> ... </ref>
     <author>Johnstone,  J.B.</author><title type="main" n="benbolt">Ben Bolt</title>
</bibl>

which contains, as you see, two <graphic> elements. However, when I try to display this with my fairly vanilla ceteicean file (see below)

  • the first graphic is displayed
  • the first ref is transformed to an HTML link with the content "L0228"
  • the second ref is transformed to an HTML link with the content "..." only -- no sign of the graphic.

[Github won't let me add an HTML file, so here it is

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="css/metaLacy.css" media="screen" title="wot no title" />
    <script src="js/CETEI.js" ></script>
    <script>
    var ceteicean = new CETEI();
    ceteicean.shadowCSS = "css/metaLacy.css"
    ceteicean.getHTML5(
    'https://raw.githubusercontent.com/lb42/Lacy/main/catalogueTest.xml', function(data) {
      document.getElementsByTagName("body")[0].appendChild(data);
    });
    </script>
      <title>Lacy's Acting Edition</title>
  </head>
  <body>

  </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions