From 2a7b62e58dfe48842c107254fb19b56a1a4162a6 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 28 Oct 2013 22:35:16 +0000 Subject: [PATCH] Add support for language='c++'. The implementation is a bit odd, but I was trying to match the existing templates. [SVN r86509] --- .../syntax-highlight/language-attribute.gold | 13 ++++++++++ .../syntax-highlight/language-attribute.xml | 25 +++++++++++++++++++ xsl/annotation.xsl | 8 ++++++ xsl/docbook.xsl | 8 ++++++ 4 files changed, 54 insertions(+) create mode 100644 test/more/tests/syntax-highlight/language-attribute.gold create mode 100644 test/more/tests/syntax-highlight/language-attribute.xml diff --git a/test/more/tests/syntax-highlight/language-attribute.gold b/test/more/tests/syntax-highlight/language-attribute.gold new file mode 100644 index 0000000..9722d10 --- /dev/null +++ b/test/more/tests/syntax-highlight/language-attribute.gold @@ -0,0 +1,13 @@ + + + Test language attribute + plain text + void main() {} + actions something ; + + + plain text + void main() {} + actions something ; + + \ No newline at end of file diff --git a/test/more/tests/syntax-highlight/language-attribute.xml b/test/more/tests/syntax-highlight/language-attribute.xml new file mode 100644 index 0000000..e5891b4 --- /dev/null +++ b/test/more/tests/syntax-highlight/language-attribute.xml @@ -0,0 +1,25 @@ + + + + + Test language attribute + plain text + void main() {} + actions something ; + + + plain text + void main() {} + actions something ; + + + diff --git a/xsl/annotation.xsl b/xsl/annotation.xsl index 93acd7c..1d9b79e 100644 --- a/xsl/annotation.xsl +++ b/xsl/annotation.xsl @@ -400,6 +400,14 @@ + + + + + + + + diff --git a/xsl/docbook.xsl b/xsl/docbook.xsl index d7a1db7..12bef90 100644 --- a/xsl/docbook.xsl +++ b/xsl/docbook.xsl @@ -398,6 +398,10 @@ Error: XSL template 'link-or-anchor' called with invalid link-type ' + + + + @@ -454,6 +458,10 @@ Error: XSL template 'link-or-anchor' called with invalid link-type ' + + + +