Eliot Kimber | 31 Dec 17:59
Favicon

[Serna] Migrating Custom DITA Templates from 3.4 to 3.5.1

I have custom DITA templates that work with Serna 3.4 but I'm having 
trouble getting them to work with 3.5 (or rather, I'm having trouble 
getting editing of my DITA content to work at all with 3.5, but since 
everything hinges on templates, that's my focus).

My setup is:

- OS X Tiger

- Serna 3.5.1

- catalog-dita_template.xml from my local Open Toolkit directory added 
to the catalog list, set like so:

$SERNA_XML/catalog.xml:$XML_CATALOG_FILES:/Applications/DITA-OT1.3.1/catalog-dita_template.xml

- Within the xml/ directory I have a templates/ directory containing 
templates for my local DITA map and topic shell DTDs. Here is a typical 
such template:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE t:document-template PUBLIC "-//Syntext//DTD Syntext Document 
Template V2.0//EN" "doctemplate.dtd" [
<!ENTITY dita13.common SYSTEM 
"../../plugins/dita/oasis-dita-11-common.ent">]>
<t:document-template 
xmlns:t="http://www.syntext.com/Extensions/DocTemplate-2.0">
   <t:category>RSuite Docs</t:category>
   <t:name>Concept</t:name>

<t:xml-stylesheet>$SERNA_DATA_DIR/plugins/dita/dita-xsl-serna/dita2fo_shell.xsl</t:xml-stylesheet>

<t:dtd-sysid>http://reallysi.com/doctypes/dita/concept/concept.dtd</t:dtd-sysid>
   <t:dtd-pubid>http://reallysi.com/doctypes/dita/concept</t:dtd-pubid>

<t:csl-stylesheet>$SERNA_DATA_DIR/plugins/dita/dita-topic.csl</t:csl-stylesheet>
   <t:dtd-guess-string>OASIS.*DITA Concept</t:dtd-guess-string>
   <t:rootelem-guess-string>concept</t:rootelem-guess-string>
   <t:root-elements>concept</t:root-elements>
   <t:document-skeleton>
     <t:name>Generic Concept</t:name>
     <t:content>
       <concept id="topicid">
         ...
       </concept>
     </t:content>
   </t:document-skeleton>
   <t:template-showup-priority>80</t:template-showup-priority>
&dita13.common;</t:document-template>

I use the  catalog-dita_template.xml catalog in my Toolkit directory to 
pull in the catalogs for my local shells. I have verified that my sample 
documents are valid (using OxygenXML and the same 
catalog-dita_template.xml catalog to do the validation).

This all seemed to work in 3.4 but in 3.5.1, when I either do New and 
choose one of my templates or open a topic that uses one of my local 
shells, I get the message "Catalog file 
'/Applications/Serna3_5.app/Contents/xml/templates/catalog-11.xml' does 
not exit.

When I click "OK" the document opens and is formatted and is not 
reported as invalid, but when I try to insert elements I get an empty 
list in any context I try to insert from (e.g., from inside a "p" 
element). If I introduce an invalid element using text mode and reload 
the WYSIWYG view, I do not get any validation messages (and the 
"revalidate" option is greyed out on Tools menu).

Clearly something is looking for catalog-11.xml relative to the 
template, where it does not exist. I don't see anything in the template 
itself that would be trying to pull in this catalog.

I'm at a bit of a loss as this seemed to work in 3.4 (or at least I had 
it working at one point a few months ago).

What am I missing?

Thanks,

Eliot

--

-- 
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com


Gmane