From 7ba9169c0c9ef8564bc6137d4322652e8a7a6636 Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Wed, 31 Jul 2013 10:59:37 +0200 Subject: [PATCH] link: Added example.xml and footnote style sheets Simple example file showing a link tag. Style sheet for html and pdf (fo) that takes the link URL and puts it as a footnote. --- link/example.xml | 43 ++++++++++++++++ link/footnote.html.xsl | 110 +++++++++++++++++++++++++++++++++++++++++ link/footnote.pdf.xsl | 13 +++++ 3 files changed, 166 insertions(+) create mode 100644 link/example.xml create mode 100644 link/footnote.html.xsl create mode 100644 link/footnote.pdf.xsl diff --git a/link/example.xml b/link/example.xml new file mode 100644 index 0000000..865ecb8 --- /dev/null +++ b/link/example.xml @@ -0,0 +1,43 @@ + +
+ + Making a link a footnote + Linkfootnote + + + Mr + Fredrik + Unger + + fred@tree.se + + Tree.se + + + 2013-07-29 + + + Displaying a link as a footnote instead of the default in + text representation. + + + +
Example code + + Sometimes a link in the text to a website is better not + interspersed in the text as the default processing but put as a + footnote. This makes the text easier to read but still providing + the link. By using overloading the style sheet the docbook xml can + be kept the same. + + + There is a domain + that is established to be used for illustrative examples in + documents. One can use this domain in examples without prior + coordination or asking for permission. + +
+
diff --git a/link/footnote.html.xsl b/link/footnote.html.xsl new file mode 100644 index 0000000..a1f41e1 --- /dev/null +++ b/link/footnote.html.xsl @@ -0,0 +1,110 @@ + + + + + + + + + + + + + #ftn. + + + + + [ + + + + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+ + +
+
+

The following annotations are from this essay. You are seeing + them here because your browser doesn’t support the user-interface + techniques used to make them appear as ‘popups’ on modern browsers.

+
+ + +
+
+
+ + +
+ + + [ + + ] + +
+
+ + + + + +
diff --git a/link/footnote.pdf.xsl b/link/footnote.pdf.xsl new file mode 100644 index 0000000..a4cbfb4 --- /dev/null +++ b/link/footnote.pdf.xsl @@ -0,0 +1,13 @@ + + + + + + + + + + -- 2.30.2