]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix Schematron rules
authorNorman Walsh <ndw@nwalsh.com>
Fri, 9 Jan 2004 14:14:50 +0000 (14:14 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 9 Jan 2004 14:14:50 +0000 (14:14 +0000)
docbook/relaxng/src/glossary.rnc

index 077e869067c9635054d9da697e9e6c976e162c26..642c06fbd95b7791d0b59d5126e51e0636329941 100644 (file)
@@ -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."
             ]
          ]