Page 1 of 1

Using the SVG domain in DITA 1.3

Posted: Fri Jan 24, 2020 4:33 am
by bob_beims
I'm trying to use the SVG domain for the first time, and can't figure out why the proper element structure fails to validate. I'm using oXygen 21.1 with this markup:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="general_description2" ditaarch:DITAArchVersion="1.3">
  <title>Block Diagram</title>
  <refbody>
    <section>
      <fig>
        <title>Block Diagram</title>
        <svg-container>
          <svgref href="diagram.svg" format="svg"/>
        </svg-container>
      </fig>
    </section>
  </refbody>
</reference>
The <svg-container> and <svgref> elements aren't presented as auto-fill options when I start typing them, and they fail validation.

What am I missing?

Re: Using the SVG domain in DITA 1.3

Posted: Mon Jan 27, 2020 11:15 am
by Radu
Hi Bob,

Your sample XML document should be valid with an Oxygen installation (18.1 or newer) using default settings (and its own bundled DITA OT).
Probably you are using a customized DITA Open Toolkit installation which does not have installed the DITA 1.3 DTDs plugin or you might have a custom XML catalog set up in Oxygen resolving the DTD references to the DITA 1.2 DTDs.
For example a standard DITA OT installation should contain this plugin DITA-OT\plugins\org.oasis-open.dita.v1_3

Regards,
Radu

Re: Using the SVG domain in DITA 1.3

Posted: Mon Jan 27, 2020 8:27 pm
by bob_beims
Aha ... I looked at Preferences > XML > XML Catalog and discovered some paths to OT projects I'd worked on several years ago and forgot to clear out.

Thanks