basic-settings.xsl 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- This file is part of the DITA Open Toolkit project.
  3. See the accompanying license.txt file for applicable licenses. -->
  4. <!-- (c) Copyright Suite Solutions -->
  5. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  7. version="2.0"
  8. exclude-result-prefixes="xs">
  9. <xsl:param name="locale"/>
  10. <xsl:param name="customizationDir.url"/>
  11. <xsl:param name="artworkPrefix"/>
  12. <xsl:param name="publishRequiredCleanup"/>
  13. <xsl:param name="DRAFT"/>
  14. <xsl:param name="artLabel" select="'no'"/>
  15. <xsl:param name="output.dir.url"/>
  16. <xsl:param name="work.dir.url"/>
  17. <xsl:param name="input.dir.url"/>
  18. <xsl:param name="pdfFormatter" select="'fop'"/>
  19. <xsl:param name="antArgsGenerateTaskLabels"/>
  20. <xsl:param name="tocMaximumLevel" select="4"/>
  21. <xsl:param name="antArgsBookmarkStyle"/>
  22. <!-- Values are COLLAPSED or EXPANDED. If a value is passed in from Ant, use that value. -->
  23. <xsl:variable name="bookmarkStyle" select="if (normalize-space($antArgsBookmarkStyle)) then $antArgsBookmarkStyle else 'COLLAPSE'"/>
  24. <!-- Determine how to style topics referenced by <chapter>, <part>, etc. Values are:
  25. MINITOC: render with a MiniToc on left, content indented on right.
  26. BASIC: render the same way as any topic. -->
  27. <xsl:param name="antArgsChapterLayout"/>
  28. <xsl:variable name="chapterLayout" select="if (normalize-space($antArgsChapterLayout)) then $antArgsChapterLayout else 'MINITOC'"/>
  29. <xsl:param name="appendixLayout" select="$chapterLayout"/>
  30. <xsl:param name="appendicesLayout" select="$chapterLayout"/>
  31. <xsl:param name="partLayout" select="$chapterLayout"/>
  32. <xsl:param name="noticesLayout" select="$chapterLayout"/>
  33. <!-- list of supported link roles -->
  34. <xsl:param name="include.rellinks"/>
  35. <xsl:variable name="includeRelatedLinkRoles" select="tokenize(normalize-space($include.rellinks), '\s+')" as="xs:string*"/>
  36. <!-- The default of 215.9mm x 279.4mm is US Letter size (8.5x11in) -->
  37. <xsl:variable name="page-width">215.9mm</xsl:variable>
  38. <xsl:variable name="page-height">279.4mm</xsl:variable>
  39. <!-- This is the default, but you can set the margins individually below. -->
  40. <xsl:variable name="page-margins">20mm</xsl:variable>
  41. <!-- Change these if your page has different margins on different sides. -->
  42. <xsl:variable name="page-margin-inside" select="$page-margins"/>
  43. <xsl:variable name="page-margin-outside" select="$page-margins"/>
  44. <xsl:variable name="page-margin-top" select="$page-margins"/>
  45. <xsl:variable name="page-margin-bottom" select="$page-margins"/>
  46. <!--The side column width is the amount the body text is indented relative to the margin. -->
  47. <xsl:variable name="side-col-width">25pt</xsl:variable>
  48. <xsl:variable name="mirror-page-margins" select="false()"/>
  49. <xsl:variable name="default-font-size">6pt</xsl:variable>
  50. <xsl:variable name="default-line-height">12pt</xsl:variable>
  51. <xsl:variable name="generate-front-cover" select="true()"/>
  52. <xsl:variable name="generate-back-cover" select="false()"/>
  53. <xsl:variable name="generate-toc" select="true()"/>
  54. </xsl:stylesheet>