dita-community / dita13-dita-ot-1.x-support

Plugins that add support for DITA 1.3 vocabularies to the 1.x version of the DITA Open Toolkit.
Apache License 2.0
0 stars 1 forks source link

Embedded svg does not appear in the XHTML output #2

Closed raducoravu closed 9 years ago

raducoravu commented 9 years ago

I have a topic like:

  <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA 1.3 Topic//EN" "topic.dtd">
  <topic id="topic_tfm_thl_hs">
    <title>Test</title>
    <body>
      <p>abc<svg-container>
          <svg:svg width="125" height="125" version="1.1" xmlns:svg="http://www.w3.org/2000/svg">
            <svg:circle cx="62" cy="62" r="55" stroke-width="5" stroke="blue" fill="white"/>
          </svg:svg>
        </svg-container>zzz</p>
    </body>
  </topic>

I publish it to plain XHTML using DITA OT 1.8 and the XHTML contains no trace of the svg elements.

drmacro commented 9 years ago

Investigating.

As an initial test I downloaded the release package, added the plugins to a clean 1.8.5, and ran the test doc and it appeared to work correctly.

Will attempt to replicate your test.

drmacro commented 9 years ago

I can't replicate the failure. Using the topic above I get the expected HTML result using the XHTML transform:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-us" lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="copyright" content="(C) Copyright 2005"/>
<meta name="DC.rights.owner" content="(C) Copyright 2005"/>
<meta name="DC.Type" content="topic"/>
<meta name="DC.Title" content="Radu SVG Test 01"/>
<meta name="DC.Relation" scheme="URI" content="../topics/dita13-domain-tests.html"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="topic_tfm_thl_hs"/>
<link rel="stylesheet" type="text/css" href="../commonltr.css"/>
<title>Radu SVG Test 01</title>
</head>
<body id="topic_tfm_thl_hs">

    <h1 class="title topictitle1">Radu SVG Test 01</h1>

    <div class="body">
      <p class="p">abc
          <svg xmlns="http://www.w3.org/2000/svg" width="125" height="125" version="1.1" preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify" contentScriptType="application/ecmascript" contentStyleType="text/css">
            <circle cx="62" cy="62" r="55" stroke-width="5" stroke="blue" fill="white"/>
          </svg>
        zzz</p>

    </div>

  <div class="related-links">
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/dita13-domain-tests.html" title="Tests for the XML Domain">DITA 1.3 Domain Tests</a></div>
</div>
</div>

</body>
</html>
raducoravu commented 9 years ago

You are right, I had another plugin which matched any foreign element. Sorry about that, I'll close this one.