Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
4570e06b
Commit
4570e06b
authored
7 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Removing duplicate template definition
parent
5a59772f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws/Docbook/CustomLayer/slide/slideHdm.xsl
+23
-69
23 additions, 69 deletions
ws/Docbook/CustomLayer/slide/slideHdm.xsl
with
23 additions
and
69 deletions
ws/Docbook/CustomLayer/slide/slideHdm.xsl
+
23
−
69
View file @
4570e06b
...
...
@@ -10,77 +10,31 @@
<xsl:import
href=
"../Common/common.xsl"
/>
<xsl:template
match=
"/"
>
<xsl:apply-templates
select=
"//d:chapter[contains(@annotations, 'slide')]|
//d:section[contains(@annotations, 'slide')]"
mode=
'slideSet'
/>
<xsl:template
match=
"/"
>
<xsl:for-each
select=
"//d:chapter[contains(@annotations, 'slide')]|
//d:section[contains(@annotations, 'slide')]"
>
<xsl:call-template
name=
"slideUnit"
>
<xsl:with-param
name=
"rootId"
select=
"@xml:id"
/>
<xsl:with-param
name=
"sections"
select=
"."
/>
</xsl:call-template>
</xsl:for-each>
<xsl:for-each
select=
"//d:chapter[descendant::*[contains(@annotations, 'slide')]]|
//d:section[descendant::*[contains(@annotations, 'slide')]]"
>
<xsl:call-template
name=
"slideUnit"
>
<xsl:with-param
name=
"rootId"
select=
"@xml:id"
/>
<xsl:with-param
name=
"sections"
select=
"descendant::*[contains(@annotations, 'slide')]"
/>
</xsl:call-template>
</xsl:for-each>
<xsl:apply-templates
select=
"//d:chapter[descendant::*[contains(@annotations, 'slide')]]|
//d:section[descendant::*[contains(@annotations, 'slide')]]"
mode=
'selectedSlideSet'
/>
</xsl:template>
<xsl:template
match=
"d:chapter | d:section"
mode=
'selectedSlideSet'
>
<xsl:result-document
method=
"xhtml"
encoding=
"utf-8"
href=
"Slides/{@xml:id}.html"
indent=
"no"
>
<html
lang=
"en"
>
<head>
<title>
<xsl:value-of
select=
"d:title"
/>
</title>
<link
href=
"mi.css"
rel=
"stylesheet"
/>
<link
href=
"reveal.js/css/reveal.css"
rel=
"stylesheet"
/>
<link
href=
"reveal.js/css/theme/solarized.css"
id=
"theme"
rel=
"stylesheet"
/>
<!-- Code syntax highlighting -->
<link
href=
"reveal.js/lib/css/zenburn.css"
rel=
"stylesheet"
/>
</head>
<body>
<!-- Wrap the entire slide show in a div using the "reveal" class. -->
<div
class=
"reveal"
>
<!-- Wrap all slides in a single "slides" class -->
<div
class=
"slides"
>
<xsl:apply-templates
select=
"descendant::*[contains(@annotations, 'slide')]"
mode=
"slideDescendants"
/>
</div>
</div>
<script
src=
"reveal.js/lib/js/head.min.js"
></script>
<script
src=
"reveal.js/js/reveal.js"
></script>
<script>
/*
<![CDATA[*/
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
math: {
mathjax: 'https://prog.mi.hdm-stuttgart.de/mathjax/MathJax.js',
config: 'TeX-AMS-MML_HTMLorMML', // See http://docs.mathjax.org/en/latest/config-files.html
},
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true },
{ src: 'reveal.js/plugin/math/math.js', async: true }
]
});
/*]]>
*/
</script>
</body>
</html>
</xsl:result-document>
</xsl:template>
<xsl:template
match=
"d:chapter | d:section"
mode=
'slideSet'
>
<xsl:result-document
method=
"xhtml"
encoding=
"utf-8"
href=
"Slides/{@xml:id}.html"
indent=
"no"
>
<xsl:template
name=
"slideUnit"
>
<xsl:param
name=
"rootId"
/>
<xsl:param
name=
"sections"
/>
<xsl:result-document
method=
"xhtml"
encoding=
"utf-8"
href=
"Slides/{$rootId}.html"
indent=
"no"
>
<html
lang=
"en"
>
<head>
<title>
...
...
@@ -100,7 +54,7 @@
<div
class=
"reveal"
>
<!-- Wrap all slides in a single "slides" class -->
<div
class=
"slides"
>
<xsl:apply-templates
select=
"
.
"
mode=
"slideDescendants"
/>
<xsl:apply-templates
select=
"
$sections
"
mode=
"slideDescendants"
/>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment