Hussein, Thanks for your help: it's gotten me halfway home.
I managed to add the CSS I want to use to the application; it appears for all standard DITA document types. Still, though, no CSSs appear in the View menu for my company's custom DITA templates. A couple of ideas: 1) Is the problem that the individual who drew up the instructions to configure XML Mind (no, it wasn't I who developed the templates and DTDs, alas) has me adding the CSS and the templates to the original topic.xxe, not a customization of it? Find the modified topic.xxe attached, you'll see the added CSS and templates. 2) Is there something I need to add to the DTD or the DITA template? Thanks! John Dowgin -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Wednesday, September 30, 2009 11:52 AM To: John Dowgin Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] Question about defining a CSS for a DITA Specialization John Dowgin wrote: > > I have just installed XML Mind Professional Edition, and am trying to > configure oit to work with my company's DITA specialization. I've > successfully added the DTDs to the configuration, and can create and > edit .dita documents using Tree view, but I have been unsuccessful > adding a style sheet to the configuration to view the document in > anything other than tree view. If you followed this recipe: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/dtd_example.html , then you need to remove what you did because this recipe is not adapted to a DITA specialization. The aforementioned recipe is adapted to custom document types. A DITA specialization cannot be considered to be a custom document type. It's rather the normal way to use DITA. > > > > I've found > > > > http://www.xmlmind.com/xmleditor/_distrib/doc/configure/add_css.html > > > > But I'm not sure what directory custom/ is. I don't think the individual > who created the DTDs did so using any custom folder in the XML Mind > Program Files directory, and I don't see a customer .xxe file, either. > > > > Any advice you can provide would be greatly appreciated. --> My answer is about XXE v4.5, and not about earlier versions, for which anything related to DITA is no longer supported. --> You need to read this chapter (the whole chapter, not just the section "Adding a custom CSS style sheet") in order to find answers to your questions: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html --> If you don't like reading documentation, you'll also find a ready to use configuration for a DITA specialization in XXE_install_dir/doc/configure/samples/topic_plus_tag/ Exceprt of XMLmind XML Editor - Configuration and Deployment: --- A configuration for a DITA topic specialization. This specialization adds a tag element to the topic DTD. A tag element has a required kind attribute. The values allowed for the kind attribute are: attribute, attvalue, element, emptytag, endtag, genentity, localname, namespace, numcharref,paramentity, pi, prefix, comment, starttag. This configuration has been created by customizing the stock DITA topic configuration as explained in Chapter 5, Customizing an existing configuration. --- Please take a look at all the files found in topic_plus_tag/ and try to guess how it works. In order to use the topic_plus_tag custom configuration (which extends and overrides the stock DITA configuration): [1] Copy the whole topic_plus_tag/ directory (i.e. including topmost "topic_plus_tag" filename) to XXE_user_preferences_dir/addon/ [2] Restart XXE. [3] Use File|New, DITA|Topic. to create a new <topic> [4] Click inside a <p> and insert a <tag> element (new element specified by this sample DITA specialization) --- XXE_user_preferences_dir is: * $HOME/.xxe4/ on Linux. * $HOME/Library/Application Support/XMLmind/XMLEditor4/ on the Mac. * %APPDATA%\XMLmind\XMLEditor4\ on Windows 2000, XP, Vista, 7. Example: C:\Documents and Settings\john\Application Data\XMLmind\XMLEditor4\ on Windows 2000 and XP. C:\Users\john\AppData\Roaming\XMLmind\XMLEditor4\ on Windows Vista and 7. --- -------------- next part -------------- A non-text attachment was scrubbed... Name: topic.xxe Type: application/octet-stream Size: 21068 bytes Desc: topic.xxe Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090930/f20b2f1a/attachment-0001.dll

