basic-settings.xsl 3.2 KB

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