DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion <stepresult> on same line as <cmd> in PDF Transform?

  • [email protected]

    <stepresult> on same line as <cmd> in PDF Transform?

    Participants 2
    Replies 3
    Last Activity 11 years, 7 months ago

    Is there a quick XSL edit to get the to appear on the same line as the in the PDF transform? None of the “keep with” properties added to the commons-attr.xsl for the seem to do anything.

    Thanks,

    RP

    Reply

    severin.foreman

    Reply to: <stepresult> on same line as <cmd> in PDF Transform?

    Override this template in xslfotask-elements.xsl to remove the fo:block. That should do it.


           
               
           

     

    Best regards,
    Severin Foreman

    Reply

    [email protected]

    Reply to: <stepresult> on same line as <cmd> in PDF Transform?

    I don't have an task-elements.xsl in any of my DITA OT directories, but I did find that template in the commons.xsl (DITA_OTdemoxmfoxslfo) (and also in DITA_OTdemofoxslfo) and commented it out in both locations, but the stepresult block still appears as a new paragraph after the cmd block.

    Reply

    [email protected]

    Reply to: <stepresult> on same line as <cmd> in PDF Transform?

    Figured it out – the fix is in the demoxmfoxslfocommons.xsl file, not the task-elements.xsl file. In the commons.xsl file, for the
      [code]
       
           
       

       
    [/code]

    change “block” to “inline” in both instances.

      [code]
         
             
           

       
    [/code]

    This will keep the on the same line as the preceding element (which may or may not be the , but that's not always what the follows, so this is a better fix).

    RP

    Reply

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

Lost Your Password?

Products
Downloads
Support