Pages: 1
Print
Author Topic: Customization\fo custom.xsl File Differences?  (Read 2797 times)
palmer@dst
Member

Posts: 56


« on: August 13, 2012, 10:40:24 AM »

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_OT\demo\xnfo\Customization\fo path:
  • DITA_OT\demo\xmfo\Customization\fo\xsl\custom.xsl
  • DITA_OT\demo\xmfo\Customization\fo\attrs\custom.xsl

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

Thanks -

RP
Logged

rpalmer
DST Systems, Inc.
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: August 13, 2012, 11:54:53 AM »

DITA_OT\demo\xmfo\Customization\fo\xsl\custom.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_OT\demo\xmfo\Customization\fo\attrs\custom.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).
« Last Edit: August 13, 2012, 11:56:26 AM by Derek Read » Logged
palmer@dst
Member

Posts: 56


« Reply #2 on: August 15, 2012, 06:39:24 AM »

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

With that in mind, do the customizations in the DITA_OT\demo\xmfo\Customization\fo\xsl\custom.xsl file have to be just for files within that DITA_OT\demo\xmfo\Customization\fo\xsl directory, or can I use the xsl:import  section to reference files outside that directory (such as files in DITA_OT\demo\fo\xsl\fo or DITA_OT\demo\xmfo\cfg\common etc.)?

Thanks,

RP
Logged

rpalmer
DST Systems, Inc.
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: August 15, 2012, 11:26:22 AM »

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.
Logged
Pages: 1
Print
Jump to: