DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Customizationfo custom.xsl File Differences?
-
[email protected] August 13, 2012 at 4:40 pm
Customizationfo custom.xsl File Differences?
August 13, 2012 at 4:40 pmParticipants 2Replies 3Last Activity 10 years, 6 months agoAs 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
Derek Read August 13, 2012 at 5:54 pm
Reply to: Customizationfo custom.xsl File Differences?
August 13, 2012 at 5:54 pmDITA_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.xslImports 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).
[email protected] August 15, 2012 at 12:39 pm
Reply to: Customizationfo custom.xsl File Differences?
August 15, 2012 at 12:39 pmThanks, 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
Derek Read August 15, 2012 at 5:26 pm
Reply to: Customizationfo custom.xsl File Differences?
August 15, 2012 at 5:26 pmxsl: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.
-
AuthorPosts
- You must be logged in to reply to this topic.