diff options
Diffstat (limited to '')
16 files changed, 181 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html new file mode 100644 index 0000000000..2bb5d4b265 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <link href="domain1htmlrules.xml" rel="its-rules"> + <meta name="keywords" content="automotive"> + <title>Domain HTML</title> + </head> + <body> + <p>The new car from XYZ - buy it now!</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml new file mode 100644 index 0000000000..9387be964b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.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:domainRule selector="/h:html/h:body" + domainPointer="/h:html/h:head/h:meta[@name='keywords']/@content"/> + </its:rules> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html new file mode 100644 index 0000000000..82a8151c63 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <link href="domain2htmlrules.xml" rel="its-rules"> + <meta name="keywords" content="automotive"> + <title>Domain HTML</title> + </head> + <body> + <p>The new car from XYZ - buy it now!</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml new file mode 100644 index 0000000000..4446ffb6a0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml @@ -0,0 +1,6 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:domainRule selector="/h:html/h:body" + domainPointer="/h:html/h:head/h:meta[@name='keywords']/@content" + domainMapping="automotive auto, medical medicine, 'criminal law' law, 'property law' law"/> + </its:rules> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html new file mode 100644 index 0000000000..3349ae50d6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<link href="domain3htmlrules.xml" rel="its-rules"> +<meta name="keywords" content="sports law"> +<title>Sports law</title> +</head> +<body> +<p> +Sports law is an umbrella term used to describe the legal issues at work in the world of both amateur and professional sports. +</p> +<p> +Sports law overlaps substantially with labor law, contract law, competition or antitrust law, and tort law. +</p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml new file mode 100644 index 0000000000..89aed8f1a0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml @@ -0,0 +1,4 @@ +<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="domainParam">keywords</its:param> +<its:domainRule selector="/h:html/h:body" domainPointer="/h:html/h:head/h:meta[@name=$domainParam]/@content" domainMapping="'sports law' law, 'labor law' law, 'contract law' law, 'competition law' law,'tort law' law"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html new file mode 100644 index 0000000000..7ae79aaaad --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<meta name="keywords" content="SPORTS LAW, Judicial Matters"> +<meta property="mykeywords" content="Sport, Law"> +<script type="application/its+xml"> +<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="domainParam">keywords</its:param> +<its:domainRule selector="/h:html/h:body" domainPointer="/h:html/h:head/h:meta[@property='mykeywords' or @name=$domainParam]/@content" domainMapping="'sports law' LAW, 'labor law' LAW, 'contract law' LAW, 'competition law' LAW,'tort law' LAW"/> +</its:rules> +</script> +<title>Sports law</title> +</head> +<body> +<p>Some text about sport and law.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain1xml.xml new file mode 100644 index 0000000000..b3fd0f716d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain1xml.xml @@ -0,0 +1,13 @@ +<doc> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:domainRule selector="/doc/body" + domainPointer="/doc/head/meta[@name='DC.subject']/@content" + /> + </its:rules> + <meta name="DC.subject" content="automotive"/> + </head> + <body> + <p>The new car from XYZ - buy it now!</p> + </body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain2xml.xml new file mode 100644 index 0000000000..2c7674a247 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain2xml.xml @@ -0,0 +1,14 @@ +<doc> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:domainRule selector="/doc/body" + domainPointer="/doc/head/meta[@name='DC.subject']/@content" + domainMapping="automotive auto, 'criminal law' law, 'property law' law" + /> + </its:rules> + <meta name="DC.subject" content="automotive"/> + </head> + <body> + <p>The new car from XYZ - buy it now!</p> + </body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xml.xml new file mode 100644 index 0000000000..c08211fca9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xml.xml @@ -0,0 +1,10 @@ +<text> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="domain4xmlrules.xml"/> + <meta name="DC.subject" content="sports law"/> + </head> + <body> + <p>Sports law is an umbrella term used to describe the legal issues at work in the world of both amateur and professional sports.</p> + <p>Sports law overlaps substantially with labor law, contract law, competition or antitrust law, and tort law.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xmlrules.xml new file mode 100644 index 0000000000..2660698c92 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain4xmlrules.xml @@ -0,0 +1,6 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:domainRule selector="/text/body" + domainPointer="/text/head/meta[@name='DC.subject']/@content" + domainMapping="'sports law' law, 'labor law' law, 'contract law' law, 'competition law' law,'tort law' law" + /> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xml.xml new file mode 100644 index 0000000000..8831dcb2bd --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xml.xml @@ -0,0 +1,17 @@ +<text> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="domain5xmlrules.xml"/> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:domainRule selector="/text/body/span" domainPointer="/text/head/meta[@name='DC.type']/@content" domainMapping="'sports law' amateur"/> +</its:rules> +<meta name="DC.subject" content="sports law"/> +<meta name="DC.type" content="sports law"/> +</head> +<body> +<p> +Sports law is an umbrella term used to describe the legal issues at work in the world of both amateur and professional sports. +Sports law overlaps substantially with labor law, contract law, competition or antitrust law, and tort law. +</p> +<span id="amateursports">Unlike intercollegiate sports, international amateur sports are run by a variety of organizations. </span> +</body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xmlrules.xml new file mode 100644 index 0000000000..472b38c58b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain5xmlrules.xml @@ -0,0 +1,6 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:domainRule selector="/text/body" + domainPointer="/text/head/meta[@name='DC.subject']/@content" + domainMapping="'sports law' law,'labor law' law,'contract law' law,'competition law' law,'tort law' law" + /> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain6xml.xml new file mode 100644 index 0000000000..c62de54ac9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain6xml.xml @@ -0,0 +1,19 @@ +<text> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="domainParam">DC.type</its:param> +<its:domainRule selector="/text/body/p" domainPointer="/text/head/meta[@name=$domainParam]/@content" domainMapping="'Poetry literature' poetry"/> +</its:rules> +<meta name="DC.type" content="Poetry literature"/> +</head> +<body> +<p> +<span> +A poem is a composition written in verse (although verse has also been used for epic and dramatic fiction). +</span> +<span> +Poems make use of the aesthetic qualities of language to suggest differential meanings and to evoke emotive responses. Poems rely heavily on imagery and metaphor; they may have a rhythmic structure based on patterns of stresses (metric feet) or on patterns of different-length syllables (as in classical prosody); and they may or may not utilize rhyme. +</span> +</p> +</body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xml.xml new file mode 100644 index 0000000000..472cbb7553 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xml.xml @@ -0,0 +1,16 @@ +<text> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="domain7xmlrules.xml"/> +<meta name="DC.type" content="Poetry literature"/> +</head> +<body> +<p> +<span> +A poem is a composition written in verse (although verse has also been used for epic and dramatic fiction). +</span> +<span> +Poems make use of the aesthetic qualities of language to suggest differential meanings and to evoke emotive responses. Poems rely heavily on imagery and metaphor; they may have a rhythmic structure based on patterns of stresses (metric feet) or on patterns of different-length syllables (as in classical prosody); and they may or may not utilize rhyme. +</span> +</p> +</body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xmlrules.xml new file mode 100644 index 0000000000..b9e17bd700 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/xml/domain7xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="domainParam">DC.type</its:param> +<its:domainRule selector="/text/body/p" domainPointer="/text/head/meta[@name=$domainParam]/@content" domainMapping="'Poetry literature' poetry"/> +</its:rules> |