Using the SVG domain in DITA 1.3

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bob_beims
Posts: 2
Joined: Mon Jul 22, 2013 3:21 pm

Using the SVG domain in DITA 1.3

Post 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?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Using the SVG domain in DITA 1.3

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bob_beims
Posts: 2
Joined: Mon Jul 22, 2013 3:21 pm

Re: Using the SVG domain in DITA 1.3

Post 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
Post Reply