Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hainhofer-XSLTs
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin de la Iglesia
Hainhofer-XSLTs
Commits
54ebe45a
Commit
54ebe45a
authored
2 years ago
by
Martin de la Iglesia
Browse files
Options
Downloads
Patches
Plain Diff
zusätzliche doc-available-Tests
parent
3ac566fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ortsregister2geobrowser.xsl
+36
-30
36 additions, 30 deletions
ortsregister2geobrowser.xsl
with
36 additions
and
30 deletions
ortsregister2geobrowser.xsl
+
36
−
30
View file @
54ebe45a
...
...
@@ -22,16 +22,18 @@ Transformationsdauer via VPN ca. 45 Minuten! -->
<xsl:when
test=
"tei:idno[@type = 'URI'][contains(., 'wikidata.org')]"
>
<xsl:variable
name=
"uri"
select=
"tei:idno[@type = 'URI'][contains(., 'wikidata.org')]"
/>
<xsl:variable
name=
"wdurl"
select=
"concat($uri,'.rdf')"
/>
<xsl:variable
name=
"lat"
select=
"substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"
/>
<xsl:variable
name=
"long"
select=
"substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output_wrk"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"$uri"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
</xsl:if>
<xsl:if
test=
"doc-available($wdurl)"
>
<xsl:variable
name=
"lat"
select=
"substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"
/>
<xsl:variable
name=
"long"
select=
"substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output_wrk"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"$uri"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:when>
<xsl:when
test=
"tei:idno[@type = 'URI'][contains(., 'd-nb.info')]"
>
<xsl:variable
name=
"uri"
select=
"tei:idno[@type = 'URI'][contains(., 'd-nb.info')][not(preceding-sibling::tei:idno[@type = 'URI'][contains(., 'd-nb.info')])]"
/>
...
...
@@ -85,16 +87,18 @@ Transformationsdauer via VPN ca. 45 Minuten! -->
<xsl:when
test=
"tei:idno[@type = 'URI'][contains(., 'vocab.getty.edu/tgn')]"
>
<xsl:variable
name=
"uri"
select=
"tei:idno[@type = 'URI'][contains(., 'vocab.getty.edu/tgn')][not(preceding-sibling::tei:idno[@type = 'URI'][contains(., 'vocab.getty.edu/tgn')])]"
/>
<xsl:variable
name=
"rdfurl"
select=
"concat($uri,'.rdf')"
/>
<xsl:variable
name=
"lat"
select=
"document($rdfurl)//wgs:lat"
/>
<xsl:variable
name=
"long"
select=
"document($rdfurl)//wgs:long"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"$uri"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
</xsl:if>
<xsl:if
test=
"doc-available($rdfurl)"
>
<xsl:variable
name=
"lat"
select=
"document($rdfurl)//wgs:lat"
/>
<xsl:variable
name=
"long"
select=
"document($rdfurl)//wgs:long"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"$uri"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:when>
<xsl:when
test=
"tei:idno[@type = 'URI'][contains(., 'd-nb.info')]"
>
<xsl:variable
name=
"uri"
select=
"tei:idno[@type = 'URI'][contains(., 'd-nb.info')][not(preceding-sibling::tei:idno[@type = 'URI'][contains(., 'd-nb.info')])]"
/>
...
...
@@ -112,16 +116,18 @@ Transformationsdauer via VPN ca. 45 Minuten! -->
</xsl:when>
<xsl:otherwise>
<xsl:variable
name=
"wdurl"
select=
"concat(document($rdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]/@rdf:resource,'.rdf')"
/>
<xsl:variable
name=
"lat"
select=
"substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"
/>
<xsl:variable
name=
"long"
select=
"substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"substring-before($wdurl,'.rdf')"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
<xsl:if
test=
"doc-available($wdurl)"
>
<xsl:variable
name=
"lat"
select=
"substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"
/>
<xsl:variable
name=
"long"
select=
"substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"
/>
<xsl:if
test=
"($lat ne '') and ($long ne '')"
>
<xsl:call-template
name=
"output"
>
<xsl:with-param
name=
"placeid"
select=
"@xml:id"
/>
<xsl:with-param
name=
"uri"
select=
"substring-before($wdurl,'.rdf')"
/>
<xsl:with-param
name=
"lat"
select=
"$lat"
/>
<xsl:with-param
name=
"long"
select=
"$long"
/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
...
...
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