DITA and XMetaL Discussion
[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 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:
What's the difference between the two custom.xsl files, and what type of edits should I put in each?
RPDerek Read August 13, 2012 at 5:54 pm
Reply to: Customizationfo custom.xsl File Differences?August 13, 2012 at 5:54 pm
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).
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).[email protected] August 15, 2012 at 12:39 pm
Reply to: Customizationfo custom.xsl File Differences?August 15, 2012 at 12:39 pm
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.)?
RPDerek Read August 15, 2012 at 5:26 pm
Reply to: Customizationfo custom.xsl File Differences?August 15, 2012 at 5:26 pm
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.
- You must be logged in to reply to this topic.