DITA and XMetaL Discussion
sfogel December 11, 2008 at 6:06 am
Specializing the DITA "props" attributeDecember 11, 2008 at 6:06 amParticipants 3Replies 4Last Activity 12 years, 6 months ago
For XMetal Author 5.1, can anyone provide the steps for specializing the DITA “props” attribute for conditional processing?
Oracle CorporationXMetaLOldTimer December 11, 2008 at 8:41 am
Reply to: Specializing the DITA "props" attributeDecember 11, 2008 at 8:41 am
Eliot Kimber's blog has a tutorial on how to do the dtd modifications: [url=http://drmacros-xml-rants.blogspot.com/2007/03/tutorial-specializing-dita-conditional.html]http://drmacros-xml-rants.blogspot.com/2007/03/tutorial-specializing-dita-conditional.html[/url]
XMetaL's authoring dtds are located in the 'AuthorDITADITA_OT_DTD' folder. XMetaL's integrated DITA OT has a separate copy of the dtds that need to be manually kept in sync under 'Common FilesXMetaL SharedDITA_OTdtd'.
To configure XMetaL's Condition Text dialogs to show the specialized props, editing the AuthorConditional Textconfigsct_config.xml. This process is described in the XMetaL help (see 'Modify conditions' topic or search for 'ct_config.xml').
Addamghkrause December 11, 2008 at 8:58 am
Reply to: Specializing the DITA "props" attributeDecember 11, 2008 at 8:58 am
In case you do specialization for topic and attributes you can store a single set of files where open toolkit is:
C:Program FilesCommon FilesXMetaL SharedDITA_OTyour-specialization-folder (or dtd)
You tell XMetaL that your specialized dtd is located over there. And even the default dtds can be redirected to this folder to get rid of the “keep in sync”.
Any XMetaL specialist listening that knows why we need two sets of DTDs? Of course, the toolkit needs them, but why is XMetaL not reusing them?
BTW: we found a problem with base attribute for some elements as defined in XMetaL's version of DITA 1.1. We went back to the OASIS standard and use DTDs in OT folder only.sfogel December 12, 2008 at 4:27 am
Reply to: Specializing the DITA "props" attributeDecember 12, 2008 at 4:27 am
Thank you all for your replies.
If I create my own specialized DTDs and point XMetal at them (I assume with Tools -> Select Specialized DITA DTD), and if I want to specialize just the props attribute, then is it sufficient to add the required declarations to my copy of the topic.dtd shell in my directory, or do I have to add the declarations elsewhere?
And if I make my own copies in my own directory, do I have to place copies of **ALL** the files from the directory C:Program FilesCommon FilesXMetaL SharedDITA_OTdtd in there so that they all resolve to each other?
Steveghkrause December 12, 2008 at 8:50 am
Reply to: Specializing the DITA "props" attributeDecember 12, 2008 at 8:50 am
I have a specialization directory in parallel to C:Program FilesCommon FilesXMetaL SharedDITA_OTdtd called qimonda.
1) The minimum file set you need to do props specialization AFAIK:
my-concept.dtd and my-attributedomain.ent
2) Change all file entities in my-concept.dtd to “..dtd
3) and link your ent file (to my-concept.dtd)
“-//MY-OWN//ENTITIES DITA Attributes//EN”
3) and make your attributes known (again in my-concept.dtd)
“%my-first-props-d-attribute; %my-second-props-d-attribute;” >
Note: these entities have to be defined in my-attributedomain.ent.
Other option: start all your files with a prefix like we use “q-” and store them in the dtd folder. You do not touch any OASIS file, at least I do never.
- You must be logged in to reply to this topic.