Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EUPT XML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
subugoe
EUPT
EUPT XML
Commits
e49b9cb5
Commit
e49b9cb5
authored
11 months ago
by
Max-Ferdinand Zeterberg
Browse files
Options
Downloads
Patches
Plain Diff
fix(notes): simplify representation of notes
parent
f1de9e5e
No related branches found
No related tags found
1 merge request
!39
Resolve "Gliederung der philologischen Kommentare"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scenarios/xslt/edxml2html/libs/html-philology.lib.xsl
+2
-21
2 additions, 21 deletions
scenarios/xslt/edxml2html/libs/html-philology.lib.xsl
with
2 additions
and
21 deletions
scenarios/xslt/edxml2html/libs/html-philology.lib.xsl
+
2
−
21
View file @
e49b9cb5
...
...
@@ -227,27 +227,8 @@
</xsl:template>
<xsl:template
match=
"philology//notes"
>
<xsl:variable
name=
"targets"
select=
"note/@target"
/>
<xsl:variable
name=
"targetsUnique"
select=
"distinct-values($targets)"
/>
<xsl:variable
name=
"thisNotes"
select=
"."
/>
<ul>
<xsl:for-each
select=
"$targetsUnique"
>
<li
class=
"note-list"
>
<xsl:variable
name=
"targetUnique"
select=
"."
/>
<xsl:variable
name=
"noteListId"
select=
"concat(generate-id($thisNotes), '-', .)"
/>
<label
for=
"{$noteListId}"
>
<xsl:variable
name=
"targetIds"
select=
"tokenize($targetUnique, ' ')"
/>
<xsl:for-each
select=
"$targetIds"
>
<xsl:variable
name=
"targetId"
select=
"substring(., 2)"
/>
<xsl:apply-templates
select=
"root($thisNotes)//*[@xml:id = $targetId]"
/>
</xsl:for-each>
</label>
<input
id=
"{$noteListId}"
type=
"checkbox"
/>
<ul>
<xsl:apply-templates
select=
"$thisNotes//note[@target = $targetUnique]"
/>
</ul>
</li>
</xsl:for-each>
<ul>
<xsl:apply-templates
select=
".//note"
/>
</ul>
</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