Skip to content

Commit e9c3d8a

Browse files
committed
report changes
1 parent e1e0d16 commit e9c3d8a

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changes
22

3+
## 0.4.0
4+
5+
- allows customization of the relation of `resource` and the document
6+
location by replacing the `.../resource.xsl` XSLT package via a
7+
Saxon configuration file
8+
- fixes the Oxygen transformation scenarios, which were still behind
9+
version 0.1.1
10+
311
## 0.3.0
412

513
- fixes issue #2 by providing a package for URL templates with query parameters

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ parameters:
2424

2525
| parameter | [navigation](https://distributed-text-services.github.io/specifications/versions/1.0rc1/#uri-for-navigation-endpoint-requests) | [document](https://distributed-text-services.github.io/specifications/versions/1.0rc1/#query-parameters-2) |
2626
|-------------|--------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
27-
| `resource` | | |
27+
| `resource` |[³](#resource) |[³](#resource) |
2828
| `ref` |||
2929
| `start` |||
3030
| `end` |||
3131
| `down` || not used |
3232
| `tree` |||
3333
| `page` || not used |
34-
| `mediaType` | not used |[¹](#mediatype) |
34+
| `mediaType` | not used |[¹](#mediatype) |
3535

3636
Evaluated TEI elements:
3737

@@ -45,6 +45,8 @@ Evaluated TEI elements:
4545

4646
1. see section about [mediaType](#mediatype)
4747
2. supported, but `dcterms` do not yet come out as a map as shown in the specification's examples
48+
3. for mapping of the values of `resource` to document URIs see the
49+
[`resource`](#resource) section
4850

4951

5052
## XSLT for Endpoints
@@ -177,6 +179,16 @@ soon.
177179

178180
## Customization
179181

182+
### `resource`
183+
184+
The value coming in via the `resource` parameter must somehow be
185+
mapped to a document URI (at least when calling the initial
186+
template). There is a mapping function, that can easily be
187+
replaced. It's called `dts:resource-uri#1` and defined in
188+
[`xsl/resource.xsl`](xsl/resource.xsl). This package can be replaced
189+
with one that suits your needs by the Saxon configuration file.
190+
191+
180192
### Citation Trees
181193

182194
To add custom citation tree constructions not based on

0 commit comments

Comments
 (0)