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
0b2a2317
Commit
0b2a2317
authored
Apr 03, 2013
by
Davis King
Browse files
Added the include argument to the term list elements.
parent
e3aeab52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
docs/docs/stylesheet.xsl
docs/docs/stylesheet.xsl
+32
-4
No files found.
docs/docs/stylesheet.xsl
View file @
0b2a2317
...
...
@@ -174,6 +174,8 @@ function BigToggle(node)
ul.tree { margin:0px; padding:0px; margin-left:5px; font-size:0.95em; }
ul.tree li ul { margin-left:10px; padding:0px; }
li#term { list-style: none; }
div#component {
background-color:white;
border: 2px solid rgb(102,102,102);
...
...
@@ -224,6 +226,22 @@ function BigToggle(node)
margin: 0.5em;
}
div#name {
float: left;
}
div#line1 {
float:left;
width:100%;
background-color:#dfdfdf;
}
div#line2 {
float:left;
width:100%;
}
div#inc {
float: right;
}
.code_box
{
...
...
@@ -929,20 +947,30 @@ function BigToggle(node)
<h1><xsl:value-of
select=
"$cur_letter"
/></h1>
<xsl:for-each
select=
"term"
>
<xsl:sort
order=
"ascending"
select=
"translate(@name,$lcletters, $ucletters)"
/>
<xsl:variable
name=
"alt"
select=
"1+(position() mod 2)"
/>
<xsl:variable
name=
"line"
select=
"concat('line',format-number($alt,'0'))"
/>
<xsl:if
test=
"$cur_letter = substring(translate(@name,$lcletters, $ucletters),1,1)"
>
<xsl:choose>
<xsl:when
test=
"@link"
>
<li><a
href=
"{@link}"
><xsl:value-of
select=
"@name"
/></a></li>
<li
id=
"term"
><div
id=
'{$line}'
><div
id=
'name'
><a
href=
"{@link}"
><xsl:value-of
select=
"@name"
/></a></div>
<div
id=
'inc'
><xsl:if
test=
'@include'
>
#include
<
<xsl:value-of
select=
"@include"
/>
>
</xsl:if></div>
</div></li>
</xsl:when>
<xsl:when
test=
"@file"
>
<li><a
href=
"{@file}#{@name}"
><xsl:value-of
select=
"@name"
/></a></li>
<li
id=
"term"
><div
id=
'{$line}'
><div
id=
'name'
><a
href=
"{@file}#{@name}"
><xsl:value-of
select=
"@name"
/></a></div>
<div
id=
'inc'
><xsl:if
test=
'@include'
>
#include
<
<xsl:value-of
select=
"@include"
/>
>
</xsl:if></div>
</div></li>
</xsl:when>
<xsl:otherwise>
<li>
<xsl:value-of
select=
"@name"
/>
<li
id=
"term"
>
<xsl:value-of
select=
"@name"
/>
<ul>
<xsl:for-each
select=
"term"
>
<xsl:sort
order=
"ascending"
select=
"translate(@name,$lcletters, $ucletters)"
/>
<li><a
href=
"{@link}"
><xsl:value-of
select=
"@name"
/></a></li>
<xsl:variable
name=
"alt2"
select=
"1+(($alt+position()) mod 2)"
/>
<xsl:variable
name=
"line2"
select=
"concat('line',format-number($alt2,'0'))"
/>
<li
id=
"term"
><div
id=
'{$line2}'
><div
id=
'name'
><a
href=
"{@link}"
><xsl:value-of
select=
"@name"
/></a></div>
<div
id=
'inc'
><xsl:if
test=
'@include'
>
#include
<
<xsl:value-of
select=
"@include"
/>
>
</xsl:if></div>
</div></li>
</xsl:for-each>
</ul>
</li>
...
...
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