Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
43d0bea2
Commit
43d0bea2
authored
Sep 13, 2015
by
Davis King
Browse files
Cleaned up the html a lot. The page doesn't use tables for layout anymore.
parent
af928c9a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
44 deletions
+42
-44
docs/docs/stylesheet.xsl
docs/docs/stylesheet.xsl
+42
-44
No files found.
docs/docs/stylesheet.xsl
View file @
43d0bea2
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<xsl:variable
name=
"gray"
>
#E3E3E3
</xsl:variable>
<xsl:variable
name=
"gray"
>
#E3E3E3
</xsl:variable>
<xsl:variable
name=
"background_color"
>
#EDF3EE
</xsl:variable>
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
...
@@ -83,9 +82,9 @@
...
@@ -83,9 +82,9 @@
<body
bgcolor=
"{$background_color}"
>
<body>
<a
name=
"top"
/>
<a
name=
"top"
/>
<div
class=
"entire_
page_header"
>
<div
id=
"
page_header"
>
<xsl:if
test=
"$is_chm != 'true'"
>
<xsl:if
test=
"$is_chm != 'true'"
>
<div
style=
"float:right;width:450px"
>
<div
style=
"float:right;width:450px"
>
<script>
<script>
...
@@ -104,20 +103,21 @@
...
@@ -104,20 +103,21 @@
</xsl:if>
</xsl:if>
<a
href=
"http://dlib.net"
><img
src=
"dlib-logo.png"
/></a>
<a
href=
"http://dlib.net"
><img
src=
"dlib-logo.png"
/></a>
</div>
</div>
<div
class=
"entire_page"
>
<table
bgcolor=
"white"
height=
"100%"
bordercolor=
"{$background_color}"
CELLSPACING=
"0"
CELLPADDING=
"10"
style=
"border:0px;margin-top:2px
"
>
<div
id=
"top_content
"
>
<
tr
height=
"100%
"
>
<
div
id=
"main_menu"
class=
"menu
"
>
<xsl:apply-templates
select=
"document($main_menu)/doc/menu"
/>
<xsl:apply-templates
select=
"document($main_menu)/doc/menu"
/>
</div>
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<td
VALIGN=
"TOP"
width=
"100%"
style=
"border: 1px solid rgb(102,102,102);"
>
<div
id=
"main_text"
>
<xsl:if
test=
"title"
>
<xsl:if
test=
"title"
>
<center><h1>
<xsl:value-of
select=
"title"
/>
</h1></center>
<div
id=
"main_text_title"
>
<xsl:value-of
select=
"title"
/>
</div>
</xsl:if>
</xsl:if>
<xsl:apply-templates
select=
"body"
/>
<div
id=
"main_text_body"
>
<xsl:apply-templates
select=
"body"
/>
<xsl:for-each
select=
"questions"
>
<xsl:for-each
select=
"questions"
>
<xsl:sort
select=
"translate(@group,$lcletters, $ucletters)"
/>
<xsl:sort
select=
"translate(@group,$lcletters, $ucletters)"
/>
<xsl:if
test=
"@group"
><h2><xsl:value-of
select=
"@group"
/></h2></xsl:if>
<xsl:if
test=
"@group"
><h2><xsl:value-of
select=
"@group"
/></h2></xsl:if>
...
@@ -128,29 +128,32 @@
...
@@ -128,29 +128,32 @@
</xsl:for-each>
</xsl:for-each>
</ul>
</ul>
</xsl:for-each>
</xsl:for-each>
</div>
</div>
</td>
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<xsl:choose>
<xsl:choose>
<xsl:when
test=
"menu/@from_file"
>
<xsl:when
test=
"menu/@from_file"
>
<div
id=
"right_menu"
class=
"menu"
>
<xsl:apply-templates
select=
"document(menu/@from_file)/doc/menu"
>
<xsl:apply-templates
select=
"document(menu/@from_file)/doc/menu"
>
<xsl:with-param
name=
"file_name"
select=
"concat(substring-before(menu/@from_file,'.'),'.html')"
/>
<xsl:with-param
name=
"file_name"
select=
"concat(substring-before(menu/@from_file,'.'),'.html')"
/>
</xsl:apply-templates>
</xsl:apply-templates>
</xsl:when>
</div>
<xsl:otherwise>
</xsl:when>
<xsl:apply-templates
select=
"menu"
/>
<xsl:otherwise>
</xsl:otherwise>
<xsl:if
test=
"menu"
>
</xsl:choose>
<div
id=
"right_menu"
class=
"menu"
>
<xsl:apply-templates
select=
"menu"
/>
</div>
<!-- ************************************************************************* -->
</xsl:if>
</tr>
</xsl:otherwise>
</xsl:choose>
</table>
<!-- ************************************************************************* -->
</div>
<div
id=
"bottom_content"
>
<xsl:apply-templates
select=
"components"
/>
<xsl:apply-templates
select=
"components"
/>
<xsl:apply-templates
select=
"questions"
/>
<xsl:apply-templates
select=
"questions"
/>
</div>
</div>
</body>
</body>
...
@@ -209,21 +212,16 @@
...
@@ -209,21 +212,16 @@
<xsl:template
match=
"menu"
>
<xsl:template
match=
"menu"
>
<xsl:param
name=
"file_name"
/>
<xsl:param
name=
"file_name"
/>
<td
BGCOLOR=
"#F5F5F5"
style=
"padding:7px; border: 1px solid rgb(102,102,102);"
VALIGN=
"TOP"
height=
"100%"
>
<div
class=
"menu_top"
>
<br/>
<table
WIDTH=
"{@width}"
height=
"100%"
>
<tr><td
VALIGN=
"TOP"
>
<xsl:apply-templates
select=
"top"
>
<xsl:apply-templates
select=
"top"
>
<xsl:with-param
name=
"file_name"
select=
"$file_name"
/>
<xsl:with-param
name=
"file_name"
select=
"$file_name"
/>
</xsl:apply-templates>
</xsl:apply-templates>
</td><td
width=
"1"
></td></tr>
</div>
<tr><td
valign=
"bottom"
>
<div
class=
"menu_footer"
>
<xsl:apply-templates
select=
"bottom"
>
<xsl:apply-templates
select=
"bottom"
>
<xsl:with-param
name=
"file_name"
select=
"$file_name"
/>
<xsl:with-param
name=
"file_name"
select=
"$file_name"
/>
</xsl:apply-templates>
</xsl:apply-templates>
</td></tr>
</div>
</table>
</td>
</xsl:template>
</xsl:template>
<xsl:template
match=
"item"
>
<xsl:template
match=
"item"
>
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment