2 Jan 15:12
Re: [Serna] Migrating Custom DITA Templates from 3.4 to 3.5.1
From: Paul Antonov <apg@...>
Subject: Re: [Serna] Migrating Custom DITA Templates from 3.4 to 3.5.1
Newsgroups: gmane.editors.serna.user
Date: 2008-01-02 14:12:43 GMT
Subject: Re: [Serna] Migrating Custom DITA Templates from 3.4 to 3.5.1
Newsgroups: gmane.editors.serna.user
Date: 2008-01-02 14:12:43 GMT
Eliot,
it seems that Serna does not use proper template, maybe because you are
trying to use obsolete directory layout. Serna searches for '.sdt'
(document template) files in two places: in all sub-directories of
$DATA_DIR/plugins (Serna3_5.app/Contens/plugins on Mac), and in all
sub-directories of location specified by 'Additional plugins' path in
Preferences. It is desirable to use paths relative to $TEMPLATE_DIR in
your .sdt files, because it makes them location-independent.
You can look at any plugins/dita/*.sdt files to get the idea.
If you will still have trouble with your setup, just zip your project it
and send it to me, and I'll try to fix it for you.
PS. When in doubt, use Document->Document Properties to examine actual
(resolved) template, catalog, schema and stylesheet paths (and other
properties).
Regards,
-- Paul
On Mon, 31 Dec 2007, Eliot Kimber wrote:
> 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
>
> To unsubscribe send empty e-mail to: serna-users-unsubscribe@...
>
RSS Feed