summaryrefslogtreecommitdiff
path: root/xorg-xhtml.xsl
AgeCommit message (Collapse)Author
2016-01-05Set generate.consistent.ids in xsl stylesheets for more repeatable buildsAlan Coopersmith
Causes auto-generation of id attributes to use values based on position in document, such as id="id-1.5.9.5.2", instead of based on memory address of parse tree, such as id="idm140664351287904", so that generated documents end up with the same contents across rebuilds & platforms (especially on platforms using address space layout randomization). Does not guarantee long-term stability of links across releases, just repeatability when building the same release multiple times - values will change when documents are edited to add/remove/reorder sections. Only effective when used with version 1.77 or later of the DocBook XSL stylesheets (released in 2012). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-09Embed CSS styles inside the HTML HEAD elementGaetan Nadon
Rather than referring to the external xorg.css stylesheet, embed the content of the file in the html output produced. This is accomplished by adding an xsl:template to the customization layer. The content of xorg.css must not be encoded due to the '<' character. This makes the whole html docs tree much more relocatable. In addition, it eliminates xorg.css as a runtime file which makes xorg-sgml-doctools a build time only package. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-29DocBook/XML: add support for docbook external referencesGaetan Nadon
Documents external references ----------------------------- A new feature with version 1.7 is references to documents in other packages. For example a protocol specifications may refer to another one or to a library implementing it. This feature works with PDF, HTML, PS (and epub?) generated documents and will generate links to the other versions of the same type, i.e. html docs will link to other html docs, and pdf docs will link to other pdf docs. New: generating target databases -------------------------------- All documents will generate a target db, analogous to a symbol table which will be consulted by other documents to find linking information. This is accomplished with xsltproc. New: consulting target databases -------------------------------- While documents are being converted from xml to html/pdf/ps, they will consult the target dbs of each document they which to refer to. This is accomplished with xmlto. New: master database -------------------- A hand written database has been created which provides an association between the target dbs and the document themselves. It also reflects the hierarchical structure of the documents relative to the installation dir. New: xorg-xhtml.xsl and xorg-fo.xsl ----------------------------------- A number of motivations are behind the new (and split) versions of xorg.xsl. This module must remain backward compatible to build previous versions of documentation. It was originally designed a while ago for sgml. Given that all documents makefile had to change, it seemed a good opportunity to break from the past. Among the differences: The location of xorg.css is no longer set in the stylesheet. The chunked html is no longer supported. The html and fo parameters are kept separate. Additional parameters for external references. Now allows different values for html/fo xsl for the same parameter should that be required. The xorg-xhtml.xsl imports html/docbook.xsl The xorg-fo.xsl imports fo/docbook.xsl Co-authored-by: Matt Dew <marcoz@osource.org> Acked-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>