From: Norman Walsh Date: Fri, 9 Jan 2004 14:14:50 +0000 (+0000) Subject: Fix Schematron rules X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47aa21bdc848a7c1c0be3e04818c9fe8e93a0282;p=docbook-dsssl Fix Schematron rules --- diff --git a/docbook/relaxng/src/glossary.rnc b/docbook/relaxng/src/glossary.rnc index 077e86906..642c06fbd 100644 --- a/docbook/relaxng/src/glossary.rnc +++ b/docbook/relaxng/src/glossary.rnc @@ -133,10 +133,10 @@ div { db.glosssee = [ s:rule [ - context = "db:glosssee[@linkend]" + context = "db:glosssee[@otherterm]" s:assert [ - test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng/absinthe'" - "@linkend on glosssee must point to a glossentry." + test = "local-name(//*[@id=current()/@otherterm]) = 'glossentry' and namespace-uri(//*[@id=current()/@otherterm]) = 'http://docbook.org/docbook-ng'" + "@otherterm on glosssee must point to a glossentry." ] ] ] @@ -168,10 +168,10 @@ div { db.glossseealso = [ s:rule [ - context = "db:glossseealso[@linkend]" + context = "db:glossseealso[@otherterm]" s:assert [ - test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng/absinthe'" - "@linkend on glossseealso must point to a glossentry." + test = "local-name(//*[@id=current()/@otherterm]) = 'glossentry' and namespace-uri(//*[@id=current()/@otherterm]) = 'http://docbook.org/docbook-ng'" + "@otherterm on glossseealso must point to a glossentry." ] ] ] @@ -205,7 +205,7 @@ div { s:rule [ context = "db:firstterm[@linkend]" s:assert [ - test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng/absinthe'" + test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng'" "@linkend on firstterm must point to a glossentry." ] ] @@ -240,7 +240,7 @@ div { s:rule [ context = "db:glossterm[@linkend]" s:assert [ - test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng/absinthe'" + test = "local-name(//*[@id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@id=current()/@linkend]) = 'http://docbook.org/docbook-ng'" "@linkend on glossterm must point to a glossentry." ] ]