diff options
| author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2012-09-07 08:35:08 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2012-09-07 14:09:55 (GMT) |
| commit | dbfe335099bd80e38830846c401d5651c64d15e5 (patch) | |
| tree | ee5c8e8ea413e0eeee2b0490197806e713c2b0c8 /Tests/Tutorial/Step6/MathFunctions | |
| parent | cffa899a47e83599bbe081c9f8070b7e35de1d58 (diff) | |
| download | CMake-dbfe335099bd80e38830846c401d5651c64d15e5.zip CMake-dbfe335099bd80e38830846c401d5651c64d15e5.tar.gz CMake-dbfe335099bd80e38830846c401d5651c64d15e5.tar.bz2 | |
docbook: Factor out code to write valid DocBook IDs
Attributes in XML may contain alphanumeric characters, underscores,
colons and dots. When DocBook is chunked, the dot is often used as a
path separator. To generate a valid ID, we take the title of the
section, transform all non-alphanumeric characters to underscores and
then add a prefix separated with dots. We also add the document name as
a prefix, in order to 'xinclude' eg. cmake.docbook and ctest.docbook in
the same document. IDs are written in multiple places, so the code is
factored to a function.
Diffstat (limited to 'Tests/Tutorial/Step6/MathFunctions')
0 files changed, 0 insertions, 0 deletions
