OASIS Darwin Information Typing Architecture (DITA) TC

Re: [dita] Select attributes on conref'ed element

  • 1.  Re: [dita] Select attributes on conref'ed element

    Posted 10-11-2005 14:49
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    dita message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: Re: [dita] Select attributes on conref'ed element


    Michael is correct. The toolkit will pull attributes from the target
    element, unless those same attributes are specified locally. So,
    <p audience="localaud" conref="#topic/p"/>
    <p audience="targetaud" id="p" platform="targetplat">.......</p>
    will become
    <p audience="localaud" platform="targetplat">.......</p>
    <p audience="targetaud" id="p" platform="targetplat">.......</p>
    
    There are only a couple of exceptions. First, we do not pull in the ID of
    the target element. Second, if an attribute is required, it must be
    specified on the first, referencing element. If that is the case, we will
    not use it to override the target. So, for example, in this case:
    <topichead navtitle="" conref="sample.ditamap#othertopichead"/>
    
    the navtitle from the conref target will still be pulled in. If you look
    for topichead in the conref.xsl file, you will see a list of all required
    attributes that will not be saved by the conref processor.
    
    Robert D Anderson
    IBM Authoring Tools Development
    Chief Architect, DITA Open Toolkit
    
    
                                                                               
                 Michael Priestley                                             
                 <mpriestl@ca.ibm.                                             
                 com>                                                       To 
                                           "Paul Prescod"                      
                 10/11/2005 05:29          <paul.prescod@blastradius.com>      
                 AM                                                         cc 
                                           dita@lists.oasis-open.org           
                                                                       Subject 
                                           Re: [dita] Select attributes on     
                                           conref'ed element                   
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
    
    
    
    
    
    I believe the processor in the toolkit respects both sets of attributes,
    but gives attributes on the referencing element a higher priority. This
    should be in the spec but isn't.
    
    Michael Priestley
    IBM DITA Architect
    SWG Classification Schema PDT Lead
    mpriestl@ca.ibm.com
    
                                                                               
     "Paul Prescod"                                                            
     <paul.prescod@blastradius.com>                                            
                                                                               
                                                                            To 
     10/06/2005 07:43 AM                              <dita@lists.oasis-open.o 
                                                      rg>                      
                                                                            cc 
                                                                               
                                                                       Subject 
                                                      [dita] Select attributes 
                                                      on conref'ed element     
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
    
    
    
    
    
    If an element with a conref attribute has selection attributes, are those
    to be respected by the conref processor? If the referenced element also has
    selection attributes, are those to be respected by the publishing engine as
    well?
    
     Paul Prescod
    
    
    


    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]