| | <?xml version="1.0" encoding="utf-8"?> |
---|
| | |
---|
| | <!-- |
---|
| | Output a string containing the date that the document was last built. This is implemented in two parts: |
---|
| | Output a string containing the date that the document was last built. This is implemented in three parts: |
---|
| | |
---|
| | 1. A "private" internal template that can only be called directly via call-template. |
---|
| | |
---|
| | 2. A "public" template that matches build-date elements in the document. |
---|
| | |
---|
| | 3. A "private" function to generate the actual date string in the desired format. |
---|
| | |
---|
| | These templates use the stylesheet global variable $date-built, which is set to the current date-time when the stylesheet is executed. They also use some of the global $cvs-xxx variables, which contain items extracted from the CVS ID of the document being processed. |
---|
| | --> |
---|
| | |
---|
| |
---|
| | |
---|
| | <!-- |
---|
| | Second, the "public" template (2 above). This is essentially just a wrapper around the internal template, with some additional logic to handle differences between LaTeX and HTML handling. |
---|
| | |
---|
| | In particular, we need to consider the case where /document/@auto-latex-build-date = "no", which suppresses the final build-date footer in generated LaTeX documents (which is generated by the internal template above). This is needed to resolve issues with weird footer placement due to floating items like tables and figures. The build date can then be explicitly inserted, if desired, using a build-date element in the document, which will be process by the public template below. |
---|
| | In particular, we need to consider the case where /document/@auto-latex-build-date = "no", which suppresses the final build-date footer in generated LaTeX documents (which is generated by the internal template above). This is needed to resolve issues with weird footer placement due to floating items like tables and figures. The build date can then be explicitly inserted, if desired, using a build-date element in the document, which will be processed by the public template below. |
---|
| | |
---|
| | This suppression doesn't apply to HTML, so the final auto-generated build-date footer will always be produced in HTML documents, regardless. We therefore want to suppress the processing of explicit build-date elements in HTML documents, otherwise we'll end up with more or less the inverse of the LaTeX situation: build-date footers in weird locations within the document (and probably ill-formed HTML to boot). |
---|
| | |
---|
| | This template therefore suppresses calls to the internal template where applicable. |
---|
| |
---|
|