summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/terminology/html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/terminology/html')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html18
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml3
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html23
9 files changed, 134 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html
new file mode 100644
index 0000000000..61a8154426
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1html.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology1htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p id="term">
+ We may define
+ <a>discoursal point of view</a>
+ as
+ <cite id="TDPV">
+ the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+ </cite>
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml
new file mode 100644
index 0000000000..0326b23d44
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology1htmlrules.xml
@@ -0,0 +1,3 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:termRule selector="//h:a[1]" term="yes" termInfoRef="#TDPV"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html
new file mode 100644
index 0000000000..0cca3f8072
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2html.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology2htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p>
+ We may define
+ <em id="keywords">discoursal point of view</em>
+ as
+ <dfn id="definitions">the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction</dfn>
+ .
+ </p>
+ <p>
+ We may define
+ <em id="terms">refulgence</em>
+ as
+ <dfn id="refdef">a radiant or resplendent quality or state</dfn>
+ </p>
+ <p>
+ But I'm not sure how
+ <em id="term">quincunx</em>
+ can be defined.
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml
new file mode 100644
index 0000000000..2e4eea326b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology2htmlrules.xml
@@ -0,0 +1,5 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:termRule selector="//h:p[2]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+<its:termRule selector="//h:p[3]/h:em" term="no"/>
+<its:termRule selector="//h:p[1]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html
new file mode 100644
index 0000000000..4274b3f702
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology3html.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Terminology test: default</title>
+ </head>
+ <body>
+ <p>We need a new <span its-term="yEs" its-term-info-ref="#TDPV">motherboard</span>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html
new file mode 100644
index 0000000000..29ffdc61da
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4html.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="terminology4htmlrules.xml" rel="its-rules">
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p>
+ We may define
+ <em id="keywords">discoursal point of view</em>
+ as
+ <dfn id="definitions">the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction</dfn>
+ .
+ </p>
+ <p>
+ We may define
+ <em id="terms">refulgence</em>
+ as
+ <dfn id="refdef">a radiant or resplendent quality or state</dfn>
+ </p>
+ <p>
+ But I'm not sure how
+ <em id="term">quincunx</em>
+ can be defined.
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml
new file mode 100644
index 0000000000..d405064ded
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology4htmlrules.xml
@@ -0,0 +1,7 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="termParam">keywords</its:param>
+<its:termRule selector="//h:p[2]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+<its:termRule selector="//h:p[3]/h:em[@id=$termParam]" term="no"/>
+<its:termRule selector="//h:p[1]/h:em" term="yes" termInfoPointer="../h:dfn"/>
+</its:rules>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html
new file mode 100644
index 0000000000..2e25ffb57a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology5html.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Terminology test: default</title>
+ </head>
+ <body its-annotators-ref="text-analysis|file:///tools.xml#T1" >
+ <p>We need a new <span its-annotators-ref="terminology|http://example.com/term-tool#T2" its-term="YeS" its-term-info-ref="#TDPV" its-term-confidence="0.5">motherboard</span>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html
new file mode 100644
index 0000000000..d35fd0b0e0
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/html/terminology6html.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <script type="application/its+xml">
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="termparam">term</its:param>
+ <its:termRule selector="//h:p[@id=$termparam]/h:a[1]" term="yes" termInfoRef="#TDPV"/>
+ </its:rules>
+ </script>
+ <meta charset=utf-8>
+ <title>EXAMPLE</title>
+ </head>
+ <body>
+ <p id="term">
+ We may define
+ <a>discoursal point of view</a>
+ as
+ <cite id="TDPV">
+ the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction.
+ </cite>
+ </p>
+ </body>
+ </html>