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
649b32f2
Commit
649b32f2
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Removing unnecessary "if", replacing link by xref for chapter references
parent
66d4e248
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws/Docbook/Extensions/Xsl/docbook2docbook.xsl
+10
-27
10 additions, 27 deletions
ws/Docbook/Extensions/Xsl/docbook2docbook.xsl
with
10 additions
and
27 deletions
ws/Docbook/Extensions/Xsl/docbook2docbook.xsl
+
10
−
27
View file @
649b32f2
...
...
@@ -89,15 +89,12 @@
<th>
Exercise title / page
</th>
<th>
Status of completion
</th>
</tr>
<xsl:for-each
select=
".//db:chapter"
>
<xsl:for-each
select=
".//db:chapter
[.//db:qandaset]
"
>
<xsl:variable
name=
"qandaSets"
select=
".//db:qandaset"
/>
<xsl:if
test=
"$qandaSets"
>
<!-- Top level chapter + first exercise's title -->
<tr>
<td
valign=
"top"
rowspan=
"{count($qandaSets)}"
>
<link
linkend=
"{@xml:id}"
>
<xsl:copy-of
select=
"db:title/node()"
/>
</link>
<xref
linkend=
"{@xml:id}"
/>
</td>
<td>
<xsl:apply-templates
select=
"$qandaSets[1]"
...
...
@@ -105,7 +102,7 @@
</td>
<td/>
</tr>
<!-- Remaining exercises -->
<xsl:for-each
select=
"$qandaSets[1 < position()]"
>
<tr>
<td>
...
...
@@ -115,19 +112,15 @@
<td/>
</tr>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</table>
</appendix>
</xsl:if>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"db:qandaset"
mode=
"selectOwnOrInheritedTitle"
>
<link
linkend=
"{@xml:id}"
>
<!-- xrefstyle="template:%n, %t" -->
<link
linkend=
"{@xml:id}"
>
<!-- xrefstyle="template:%n, %t" -->
<xsl:choose>
<xsl:when
test=
"db:title"
>
<xsl:copy-of
select=
"db:title/node()"
/>
...
...
@@ -209,23 +202,13 @@
<itemizedlist>
<listitem>
<para>
<xsl:text>
Maven module source code available at sub directory
</xsl:text>
<filename>
<xsl:text>
Maven module source code available at sub directory
</xsl:text>
<filename>
<xsl:value-of
select=
"$baseDir"
/>
</filename>
<xsl:text>
below lecture notes' source code root, see
</xsl:text>
<link
linkend=
"sd1ImportMavenSolutions"
>
hints regarding import.
</link>
</para>
</filename>
<xsl:text>
below lecture notes' source code root, see
</xsl:text>
<link
linkend=
"sd1ImportMavenSolutions"
>
hints regarding import.
</link></para>
</listitem>
<listitem>
<para>
Online browsing of
<link
xlink:href=
"{$baseDir}/target/site/apidocs/allclasses-noframe.html"
>
API
and implementation
</link>
.
</para>
<para>
Online browsing of
<link
xlink:href=
"{$baseDir}/target/site/apidocs/allclasses-noframe.html"
>
API and implementation
</link>
.
</para>
</listitem>
</itemizedlist>
</xsl:template>
...
...
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