Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bjcp-2015-styleguide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frank Steinberg
bjcp-2015-styleguide
Commits
744e96b3
Commit
744e96b3
authored
5 years ago
by
Frank Steinberg
Browse files
Options
Downloads
Patches
Plain Diff
Namespace fixes. Minor.
parent
5377abb6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+0
-1
0 additions, 1 deletion
README.md
xsl/bjcp-2015-styleguide-html.xsl
+32
-31
32 additions, 31 deletions
xsl/bjcp-2015-styleguide-html.xsl
xsl/bjcp-2015-styleguide-translate.xsl
+0
-6
0 additions, 6 deletions
xsl/bjcp-2015-styleguide-translate.xsl
with
32 additions
and
38 deletions
README.md
+
0
−
1
View file @
744e96b3
...
@@ -105,5 +105,4 @@ See the LICENSE file. Note that this license relates only to the content of this
...
@@ -105,5 +105,4 @@ See the LICENSE file. Note that this license relates only to the content of this
-
Add Acknowledgements to futher contributors?
-
Add Acknowledgements to futher contributors?
-
Improved tags handling (links, grouped lists, translated meaning, ...)
-
Improved tags handling (links, grouped lists, translated meaning, ...)
-
Appendices
-
Appendices
-
XML Schema Definition & make check
-
Artifacts on GitHub?
-
Artifacts on GitHub?
This diff is collapsed.
Click to expand it.
xsl/bjcp-2015-styleguide-html.xsl
+
32
−
31
View file @
744e96b3
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<xsl:stylesheet
<xsl:stylesheet
version=
"1.0"
version=
"1.0"
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:bjcp=
"http://heimbrauconvention.de/bjcp-styleguide/2015"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
...
@@ -10,7 +11,7 @@
...
@@ -10,7 +11,7 @@
<xsl:template
match=
"/styleguide"
>
<xsl:template
match=
"/
bjcp:
styleguide"
>
<xsl:element
name=
"html"
>
<xsl:element
name=
"html"
>
<xsl:element
name=
"head"
>
<xsl:element
name=
"head"
>
<xsl:element
name=
"title"
>
<xsl:element
name=
"title"
>
...
@@ -185,64 +186,64 @@ styleguide specs div * {
...
@@ -185,64 +186,64 @@ styleguide specs div * {
<xsl:template
match=
"specs"
mode=
"copy"
>
<xsl:template
match=
"
bjcp:
specs"
mode=
"copy"
>
<xsl:element
name=
"specs"
>
<xsl:element
name=
"specs"
>
<xsl:value-of
select=
"./text()"
/>
<xsl:value-of
select=
"./text()"
/>
<xsl:if
test=
"ibu or srm or og or fg or abv"
>
<xsl:if
test=
"
bjcp:
ibu or
bjcp:
srm or
bjcp:
og or
bjcp:
fg or
bjcp:
abv"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:if
test=
"ibu"
>
<xsl:if
test=
"
bjcp:
ibu"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"class"
>
ibu
</xsl:attribute>
<xsl:attribute
name=
"class"
>
ibu
</xsl:attribute>
<xsl:if
test=
"ibu/@min"
>
<xsl:if
test=
"
bjcp:
ibu/@min"
>
<xsl:value-of
select=
"ibu/@min"
/>
<xsl:value-of
select=
"
bjcp:
ibu/@min"
/>
<xsl:text>
–
</xsl:text>
<xsl:text>
–
</xsl:text>
<xsl:value-of
select=
"ibu/@max"
/>
<xsl:value-of
select=
"
bjcp:
ibu/@max"
/>
</xsl:if>
</xsl:if>
<xsl:value-of
select=
"normalize-space(ibu/text())"
/>
<xsl:value-of
select=
"normalize-space(
bjcp:
ibu/text())"
/>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:if>
<xsl:if
test=
"srm"
>
<xsl:if
test=
"
bjcp:
srm"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"class"
>
srm
</xsl:attribute>
<xsl:attribute
name=
"class"
>
srm
</xsl:attribute>
<xsl:if
test=
"srm/@min"
>
<xsl:if
test=
"
bjcp:
srm/@min"
>
<xsl:value-of
select=
"srm/@min"
/>
<xsl:value-of
select=
"
bjcp:
srm/@min"
/>
<xsl:text>
–
</xsl:text>
<xsl:text>
–
</xsl:text>
<xsl:value-of
select=
"srm/@max"
/>
<xsl:value-of
select=
"
bjcp:
srm/@max"
/>
</xsl:if>
</xsl:if>
<xsl:value-of
select=
"normalize-space(srm/text())"
/>
<xsl:value-of
select=
"normalize-space(
bjcp:
srm/text())"
/>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:if>
<xsl:if
test=
"og"
>
<xsl:if
test=
"
bjcp:
og"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"class"
>
og
</xsl:attribute>
<xsl:attribute
name=
"class"
>
og
</xsl:attribute>
<xsl:if
test=
"og/@min"
>
<xsl:if
test=
"
bjcp:
og/@min"
>
<xsl:value-of
select=
"og/@min"
/>
<xsl:value-of
select=
"
bjcp:
og/@min"
/>
<xsl:text>
–
</xsl:text>
<xsl:text>
–
</xsl:text>
<xsl:value-of
select=
"og/@max"
/>
<xsl:value-of
select=
"
bjcp:
og/@max"
/>
</xsl:if>
</xsl:if>
<xsl:value-of
select=
"normalize-space(og/text())"
/>
<xsl:value-of
select=
"normalize-space(
bjcp:
og/text())"
/>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:if>
<xsl:if
test=
"fg"
>
<xsl:if
test=
"
bjcp:
fg"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"class"
>
fg
</xsl:attribute>
<xsl:attribute
name=
"class"
>
fg
</xsl:attribute>
<xsl:if
test=
"fg/@min"
>
<xsl:if
test=
"
bjcp:
fg/@min"
>
<xsl:value-of
select=
"fg/@min"
/>
<xsl:value-of
select=
"
bjcp:
fg/@min"
/>
<xsl:text>
–
</xsl:text>
<xsl:text>
–
</xsl:text>
<xsl:value-of
select=
"fg/@max"
/>
<xsl:value-of
select=
"
bjcp:
fg/@max"
/>
</xsl:if>
</xsl:if>
<xsl:value-of
select=
"normalize-space(fg/text())"
/>
<xsl:value-of
select=
"normalize-space(
bjcp:
fg/text())"
/>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:if>
<xsl:if
test=
"abv"
>
<xsl:if
test=
"
bjcp:
abv"
>
<xsl:element
name=
"div"
>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"class"
>
abv
</xsl:attribute>
<xsl:attribute
name=
"class"
>
abv
</xsl:attribute>
<xsl:if
test=
"abv/@min"
>
<xsl:if
test=
"
bjcp:
abv/@min"
>
<xsl:value-of
select=
"abv/@min"
/>
<xsl:value-of
select=
"
bjcp:
abv/@min"
/>
<xsl:text>
–
</xsl:text>
<xsl:text>
–
</xsl:text>
<xsl:value-of
select=
"abv/@max"
/>
<xsl:value-of
select=
"
bjcp:
abv/@max"
/>
</xsl:if>
</xsl:if>
<xsl:value-of
select=
"normalize-space(abv/text())"
/>
<xsl:value-of
select=
"normalize-space(
bjcp:
abv/text())"
/>
</xsl:element>
</xsl:element>
</xsl:if>
</xsl:if>
</xsl:element>
</xsl:element>
...
@@ -252,7 +253,7 @@ styleguide specs div * {
...
@@ -252,7 +253,7 @@ styleguide specs div * {
<xsl:template
match=
"a"
mode=
"copy"
>
<xsl:template
match=
"
bjcp:
a"
mode=
"copy"
>
<xsl:variable
name=
"idref"
>
<xsl:variable
name=
"idref"
>
<xsl:value-of
select=
"@idref"
/>
<xsl:value-of
select=
"@idref"
/>
</xsl:variable>
</xsl:variable>
...
@@ -266,7 +267,7 @@ styleguide specs div * {
...
@@ -266,7 +267,7 @@ styleguide specs div * {
<xsl:value-of
select=
"./text()"
/>
<xsl:value-of
select=
"./text()"
/>
</xsl:when>
</xsl:when>
<xsl:otherwise>
<xsl:otherwise>
<xsl:value-of
select=
"//styleguide//*[@id=$idref]/name"
/>
<xsl:value-of
select=
"//
bjcp:
styleguide//*[@id=$idref]/
bjcp:
name"
/>
</xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:choose>
</xsl:element>
</xsl:element>
...
@@ -274,7 +275,7 @@ styleguide specs div * {
...
@@ -274,7 +275,7 @@ styleguide specs div * {
<xsl:template
match=
"*"
mode=
"copy"
>
<xsl:template
match=
"
bjcp:
*"
mode=
"copy"
>
<xsl:element
name=
"{local-name(.)}"
>
<xsl:element
name=
"{local-name(.)}"
>
<xsl:apply-templates
select=
"@*"
mode=
"copy"
/>
<xsl:apply-templates
select=
"@*"
mode=
"copy"
/>
<xsl:apply-templates
mode=
"copy"
/>
<xsl:apply-templates
mode=
"copy"
/>
...
...
This diff is collapsed.
Click to expand it.
xsl/bjcp-2015-styleguide-translate.xsl
+
0
−
6
View file @
744e96b3
...
@@ -163,12 +163,6 @@
...
@@ -163,12 +163,6 @@
<!-- suppress these tags in translations -->
<xsl:template
match=
"bjcp:tags|bjcp:specs"
>
</xsl:template>
<xsl:template
match=
"@*"
>
<xsl:template
match=
"@*"
>
<xsl:copy>
<xsl:copy>
<xsl:apply-templates
select=
"@*"
/>
<xsl:apply-templates
select=
"@*"
/>
...
...
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