-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #470 from ndw/sch-doc
Support titleabbrev-passthrough; incorporate documentation updates for glossaries
- Loading branch information
Showing
14 changed files
with
247 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> | ||
|
||
<xsl:include xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
href="standalone-functions.xsl"/> | ||
|
||
<ns uri="http://docbook.org/ns/docbook" prefix="db"/> | ||
<ns uri="http://docbook.org/ns/docbook/functions" prefix="f"/> | ||
|
||
<pattern> | ||
<rule context=" | ||
db:firstterm | ||
| db:glossterm[not(ancestor::db:glossary)]"> | ||
<let name="term" value="((@baseform, .)[1])"/> | ||
<let name="n" value="count(f:glossentries(.))"/> | ||
|
||
<report role="error" test="$n eq 0">No entry for | ||
<value-of select="$term"/> in glossary.</report> | ||
|
||
<report role="warning" test="$n gt 1"><value-of select="$n"/> | ||
entries for <value-of select="$term"/> in glossary.</report> | ||
|
||
</rule> | ||
</pattern> | ||
|
||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.