DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Specializing the DITA "props" attribute

  • sfogel

    Specializing the DITA "props" attribute

    Participants 3
    Replies 4
    Last Activity 12 years, 6 months ago

    Hi, all…

    For XMetal Author 5.1, can anyone provide the steps for specializing the DITA “props” attribute for conditional processing? 

    Thx

    Steve Fogel
    Oracle Corporation

    Reply

    XMetaLOldTimer

    Reply to: Specializing the DITA "props" attribute

    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').

    Regards,
    Addam

    Reply

    ghkrause

    Reply to: Specializing the DITA "props" attribute

    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.

    Reply

    sfogel

    Reply to: Specializing the DITA "props" attribute

    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?

    Thx

    Steve

    Reply

    ghkrause

    Reply to: Specializing the DITA "props" attribute

    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”
    “my-attributedomain.ent”                                                >
    %my-attributedomain;
    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.

    Enjoy specializing!

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support