You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme-docs-module.html 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <html>
  2. <head><title>AspectJ docs</title></head>
  3. <body>
  4. <h2>AspectJ docs</h2>
  5. <h3>Contents and build</h3>
  6. <p>
  7. This module contains the sources for the documentation
  8. delivered with the AspectJ distribution and
  9. for various internal, teaching, and online works:
  10. </p>
  11. <ul>
  12. <li><a href="devGuideDB">devGuideDB</a>: DocBook sources
  13. for the AspectJ Development Environment Guide</li>
  14. <li><a href="progGuideDB">progGuideDB</a>: DocBook sources
  15. for the AspectJ Programming Language Guide</li>
  16. <li><a href="faq">faq</a>: DocBook sources
  17. for the AspectJ Frequently Asked Questions</li>
  18. <li><a href="sandbox">sandbox</a>: a collection of sample
  19. AspectJ programs, tools built on the AspectJ API's,
  20. script snippets, and instructional trails, all intended
  21. to serve as sources for documentation.
  22. See <a href="sandbox/readme-sandbox.html">
  23. sandbox/readme-sandbox.html</a></li>
  24. <li><a href="teaching">teaching</a>: Teaching materials, esp.
  25. for the AspectJ tutorials.</li>
  26. <li><a href="quick.doc">quick.doc</a>: The Microsoft Word
  27. source file for the .pdf Quick Reference guides
  28. <a href="dist/doc/quick.pdf">dist/doc/quick.pdf</a> and
  29. <a href="dist/doc/quickA4.pdf">dist/doc/quickA4.pdf</a>.</li>
  30. <li><a href="build.xml">build.xml</a>: Ant build script for
  31. the doc distribution</li>
  32. <li><a href="developer">developer</a>: Docs for AspectJ developers.
  33. See the <a href="developer/overview.html">overview.html</a></li>
  34. </ul>
  35. <p>
  36. <u>Build</u>: <a href="build.xml">build.xml</a> assembles a local
  37. distribution which is gathered into the product distribution by
  38. the master build script,
  39. <a href="../build/build.xml">../build/build.xml</a>.
  40. Dependencies outside this directory:
  41. </p>
  42. <ul>
  43. <li>.xml files refer to their docbook dtds using relative
  44. path, for the moment ../../lib/docbook/...
  45. </li>
  46. <li>When building docbook, uses ../lib/saxon libraries.
  47. </li>
  48. <li>When building installer, using ../lib/build/build.jar
  49. and the ../build/installer-resources.
  50. </li>
  51. <li><a href="dist/doc/quick.pdf">dist/doc/quick.pdf</a>
  52. is generated manually from <a href="quick.doc">quick.doc</a>.
  53. </li>
  54. <li><a href="../org.aspectj.lib">../org.aspectj.lib</a>
  55. provides library sources for <code>{AspectJ}/doc/aspectjlib</code>.
  56. </li>
  57. </ul>
  58. <p>
  59. When editing the build script and XML files, try to make only substantive
  60. changes rather than reformatting, which produces illusory changes. If you
  61. do reformat, do so programmatically (e.g., using XMLBuddy plugin reformat
  62. command, with long lines wrapped and 80 character lines).
  63. </p>
  64. <h3>Docbook notes</h3>
  65. <p>
  66. Documentation is written in docbook XML form, which is transformed to HTML
  67. (single-page and multi-page forms) and, potentially, PDF. Unfortunately,
  68. this means you need to use the tags which are not only legal, but which
  69. work when transformed into all output formats, even if it means working
  70. around bugs in the transform scripts. Following are some notes on traps
  71. to avoid.
  72. </p>
  73. <pre>
  74. ---------------------------------------------- authoring support
  75. XMLBuddy has a free eclipse plugin that displays errors using problem
  76. items and gutter annotations, but it gets confused by entity references.
  77. So for devguide.xml, create a new file foo.xml and do a manual merge,
  78. correct the files, and then scatter again (leo?).
  79. ---------------------------------------------- PDF transformation
  80. The transformation from docbook XML to formatting-objects (.fo)
  81. to pdf is fairly weak. If you run the build.xml test-pdf task,
  82. you'll see a number of debug messages, which unfortunately give no
  83. clue as to the location of the problem. Problems noted in the output
  84. (where DE == docbook element)
  85. - tables broken.
  86. - DE "table" unsupported
  87. - DE "informaltable" autolayout is not supported
  88. - lineation/justification broken
  89. - need things like page header/footer titles, page number, copyright
  90. - Valid docbook elements not supported:
  91. - superscript in title
  92. ...
  93. sample debug messages:
  94. - "area contents overflows area in line"
  95. - "table-layout=auto is not supported, using fixed!"
  96. - "The element 'fo:table-and-caption' is not yet implemented."
  97. (so use docbook element (DE) informaltable, not DE table)
  98. - many "No spaces to justify text in line"
  99. ---------------------------------------------- older notes
  100. ---- misc info for writing and building docbook
  101. - link tag linkend attribute takes an id
  102. - xsl converts as needed during output
  103. - do NOT use ulink; this will be converted to ""
  104. (but see param citerefentry-link: might enable this)
  105. - to use sensible names for the files produced,
  106. - use an xsl wrapper to add/modify features
  107. - set flag to use the id of the top-level element in the output
  108. file as the filename.
  109. xsl:param name="use.id.as.filename" select="1"
  110. - fyi, other related parameters: html-ext, root-filename
  111. - In this example, the top-level element in the output file
  112. is the refentry, so set ids which become the basename of the file:
  113. refentry id="aspectj-mode" # in aspectj-mode.xml, produces aspecj-mode.html
  114. refentry id="ajdee" # in ajdee.xml, produces ajdee.html
  115. -- fyi
  116. - related parameters:
  117. html-ext, root-filename
  118. - these tags did not work for me:
  119. dbhtml filename="foo.htm"
  120. dbhtml prefix="foo-"
  121. - resources
  122. - the dtd reference for docbook
  123. http://www.oreilly.com/catalog/docbook/chapter/book/docbook.html
  124. - the stylesheet reference for docbook xsl
  125. http://docbook.sourceforge.net/projects/dsssl/doc/html.html
  126. - todo
  127. - fyi, generate.reference.titlepage appears not to be respected.
  128. tried to add if statement to html/refentry.xsl, but file still gen'd
  129. </pre>
  130. </body>
  131. </html>