DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Customizationfo custom.xsl File Differences?

  • [email protected]

    Customizationfo custom.xsl File Differences?

    Participants 2
    Replies 3
    Last Activity 10 years, 1 month ago

    As we migrate to XMetaL 7 from 6, I am trying to take all my direct edits out of the individual .xsl files in the DITA OT and put them into the custom.xsl file. However, there are two different custom.xsl files in the DITA_OTdemoxnfoCustomizationfo path:

    • DITA_OTdemoxmfoCustomizationfoxslcustom.xsl
    • DITA_OTdemoxmfoCustomizationfoattrscustom.xsl

    What's the difference between the two custom.xsl files, and what type of edits should I put in each?

    Thanks –

    RP

    Reply

    Derek Read

    Reply to: Customizationfo custom.xsl File Differences?

    DITA_OTdemoxmfoCustomizationfoxslcustom.xsl

    Imports all other XSLT files in the same folder and they are overriding the XSLT set up by Idiom (the original maker of the RenderX plug-in) in the cfg folder. Generally XSLT that makes “structural” changes should be done here. Best to add another XSLT file into that folder and then import it (at the end) of this file, or add all your overrides directly into custom.xsl (at the end).

    DITA_OTdemoxmfoCustomizationfoattrscustom.xsl

    Imports the other XSLT file in the same folder (which imports the files in the subfolder) which are overriding XSLT related to FO attributes set up by Idiom. These are essentially “styling” oriented (FO affecting fonts, text size, colours, etc).

    Reply

    [email protected]

    Reply to: Customizationfo custom.xsl File Differences?

    Thanks, Derek – that's what I was thinking, so have split my customizations accordingly.

    With that in mind, do the customizations in the DITA_OTdemoxmfoCustomizationfoxslcustom.xsl file have to be just for files within that DITA_OTdemoxmfoCustomizationfoxsl directory, or can I use the xsl:import  section to reference files outside that directory (such as files in DITA_OTdemofoxslfo or DITA_OTdemoxmfocfgcommon etc.)?

    Thanks,

    RP

    Reply

    Derek Read

    Reply to: Customizationfo custom.xsl File Differences?

    xsl:import supports both relative and full paths, so yes, you can reference files from anywhere you like.

    Use relative paths. The only reason to use a full path that I can think of would be to reference a file on another drive, in which case I would rethink where I'm putting my files.

    Reply

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

Lost Your Password?

Products
Downloads
Support