dita-community / org.dita-community.adjust-copy-to

Post processes the resolved map (output of the mappull preprocess step) in order to add additional copy-to values in order to ensure unique result files for all references to a given topic or to impose additional output filenaming rules, such as using navigation keys for result filenames.
Apache License 2.0
0 stars 0 forks source link

Factor out template that determines the copy-to filename value #8

Open drmacro opened 9 years ago

drmacro commented 9 years ago

Within the template:

<xsl:template mode="determineCopytoValue" match="*[df:class(., 'map/topicref')][@href]">

The logic for determining the filename is not broken out to a separate template or mode. It should be to make customizing the filenaming rules easier.

drmacro commented 9 years ago

Or could just allow the number format string to be specified as a runtime parameter.

drmacro commented 9 years ago

Also need to refactor the code that constructs the complete filename so the "-" separator is not hard coded.