Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
SADE
assets
Commits
f80550ef
Commit
f80550ef
authored
6 years ago
by
Mathias Goebel
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/comment-problematic-tei-functions-#7-
#12
' into 'develop'
Bugfix/comment problematic TEI functions (closes
#7
,
#12
) Closes
#12
and
#7
See merge request
!5
parents
14806be8
36584e38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Bugfix/comment problematic TEI functions (closes #7, #12)
Pipeline
#87871
passed
6 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
post-install.xq
+34
-0
34 additions, 0 deletions
post-install.xq
repo.xml
+1
-1
1 addition, 1 deletion
repo.xml
with
35 additions
and
1 deletion
post-install.xq
0 → 100644
+
34
−
0
View file @
f80550ef
xquery
version
"3.1"
;
declare
namespace
xhtml
=
"http://www.w3.org/1999/xhtml"
;
declare
namespace
xsl
=
"http://www.w3.org/1999/XSL/Transform"
;
(: The function processing the TEI version works if we use the stylesheets as a
: standalone, but the path the function uses for finding the VERSION file is
: interpreted als db internal path by eXist-db -- which leads to errors. Thus
: we remove the TEI function here.:)
let
$functions
:=
doc
(
"/db/apps/sade_assets/TEI-Stylesheets/common/functions.xsl"
)
let
$empty-otherwise
:=
<xsl:otherwise/>
let
$replace
:=
update
replace
$functions
//
xsl:function
[
@name
=
"tei:stylesheetVersion"
]
//
xsl:otherwise
with
$empty-otherwise
let
$log
:=
if
(
$functions
//
xsl:function
[
@name
=
"tei:stylesheetVersion"
]
//
xsl:otherwise
/*
)
then
util:log-system-out
(
"Omission of stylesheet version NOT successfull."
)
else
util:log-system-out
(
"Successfully omitted stylesheet version."
)
(: The stdheader functionality is not used in SADE's template. To avoid clutter
: in the resulting HTML we decided to cut out the stdheader completely (instead
: of just making it invisible in a *.css). :)
let
$files-with-stdheader
:=
collection
(
"/db/apps/sade_assets/TEI-Stylesheets/html"
)[
.//*
[
@name
=
"stdheader"
]]
let
$omit-stdhdr
:=
for
$file
in
$files-with-stdheader
return
(
update
delete
$file
//
xhtml:div
[
matches
(
@class
,
"stdheader"
)]
,
update
delete
$file
//*
[
@name
=
"stdheader"
])
return
if
(
collection
(
"/db/apps/sade_assets/TEI-Stylesheets/html"
)[
.//*
[
@name
=
"stdheader"
]])
then
util:log-system-out
(
"Omission of stdheader NOT successfull."
)
else
util:log-system-out
(
"Successfully omitted stdheader."
)
This diff is collapsed.
Click to expand it.
repo.xml
+
1
−
1
View file @
f80550ef
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<type>
library
</type>
<type>
library
</type>
<target>
sade_assets
</target>
<target>
sade_assets
</target>
<prepare/>
<prepare/>
<finish
/
>
<finish
>
post-install.xq
</finish
>
<permissions
user=
"admin"
group=
"dba"
mode=
"0775"
/>
<permissions
user=
"admin"
group=
"dba"
mode=
"0775"
/>
<changelog>
<changelog>
<change
version=
"1.0"
>
<change
version=
"1.0"
>
...
...
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