diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its')
320 files changed, 4220 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters1html.html b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters1html.html new file mode 100644 index 000000000..a717f95ce --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters1html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Example</title> + </head> + <body> + <p>Login names can only use letters from A to Z (upper or lowercase) + and the character underscore (_) and minus (-). + For example: <code its-allowed-characters="[a-zA-Z_\-]">Huck_Finn</code>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2html.html b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2html.html new file mode 100644 index 000000000..adc89d72d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="allowedcharacters2htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p>Login names can only use letters from A to Z (upper or lowercase) + and the character underscore (_) and minus (-). + For example: <code>Huck_Finn</code>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2htmlrules.xml new file mode 100644 index 000000000..a9667e0c0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters2htmlrules.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:allowedCharactersRule allowedCharacters="[a-zA-Z_\-]" selector="//h:p/h:code"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3html.html b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3html.html new file mode 100644 index 000000000..39e2c970f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Example</title> + <link href="allowedcharacters3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p>Login names can only use letters from A to Z (upper or lowercase) + and the character underscore (_) and minus (-). + For example: <code id="name">Huck_Finn</code>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3htmlrules.xml new file mode 100644 index 000000000..7e490ba52 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters3htmlrules.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="allowedcharsParam">name</its:param> + <its:allowedCharactersRule allowedCharacters="[a-zA-Z_\-]" selector="//h:p/h:code[@id=$allowedcharsParam]"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters4html.html b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters4html.html new file mode 100644 index 000000000..c77e36590 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/html/allowedcharacters4html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Example</title> + <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="acParam">name</its:param> + <its:allowedCharactersRule allowedCharacters="[a-zA-Z_\-]" selector="//h:code[@id=$acParam]"/> + </its:rules> + </script> + </head> + <body> + <p>Login names can only use letters from A to Z (upper or lowercase) + and the character underscore (_) and minus (-). + For example: <code id="name">Huck_Finn</code>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters1xml.xml new file mode 100644 index 000000000..0188ef800 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters1xml.xml @@ -0,0 +1,12 @@ +<myRes xmlns:its="http://www.w3.org/2005/11/its"> + <head> + <its:rules version="2.0"> + <its:allowedCharactersRule allowedCharacters="[^*+]" selector="//content"/> + </its:rules> + </head> + <body> + <content>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua.</content> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters2xml.xml new file mode 100644 index 000000000..0f44ccf22 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters2xml.xml @@ -0,0 +1,9 @@ +<res xmlns:its="http://www.w3.org/2005/11/its"> + <head> + <its:rules version="2.0"> + <its:allowedCharactersRule selector="//record" allowedCharactersPointer="@set"/> + </its:rules> + </head> + <record id="a1" set="[ !–~]">FULL WIDTH ONLY</record> +</res> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xml.xml new file mode 100644 index 000000000..21fae0326 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xml.xml @@ -0,0 +1,10 @@ +<myRes xmlns:its="http://www.w3.org/2005/11/its"> + <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="allowedcharacters3xmlrules.xml"/> + </head> + <body> + <content>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua.</content> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xmlrules.xml new file mode 100644 index 000000000..4b624c412 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:allowedCharactersRule allowedCharacters="[^*+]" selector="//content"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xml.xml new file mode 100644 index 000000000..49dceddc8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xml.xml @@ -0,0 +1,7 @@ +<res xmlns:its="http://www.w3.org/2005/11/its"> + <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="allowedcharacters4xmlrules.xml"/> + </head> + <record id="a1" set="[ !–~]">FULL WIDTH ONLY</record> +</res> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xmlrules.xml new file mode 100644 index 000000000..b45129a57 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters4xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:allowedCharactersRule selector="//record" allowedCharactersPointer="@set"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters5xml.xml new file mode 100644 index 000000000..1f1ebb0ea --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters5xml.xml @@ -0,0 +1,4 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <msg num="123">Click the <panelmsg its:allowedCharacters="[ -þ]" + >CONTINUE</panelmsg> Button on the printer panel</msg> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters6xml.xml new file mode 100644 index 000000000..0dc1a9945 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters6xml.xml @@ -0,0 +1,3 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <msg num="123">Click the <its:span allowedCharacters="[ -þ]">CONTINUE</its:span> Button on the printer panel</msg> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xml.xml new file mode 100644 index 000000000..168de572a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xml.xml @@ -0,0 +1,10 @@ +<myRes xmlns:its="http://www.w3.org/2005/11/its"> + <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="allowedcharacters7xmlrules.xml"/> + </head> + <body> + <content id="allowedchar">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua.</content> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xmlrules.xml new file mode 100644 index 000000000..c030ff072 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters7xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="allowedcharParam">allowedchar</its:param> + <its:allowedCharactersRule allowedCharacters="[^*+]" selector="//content[@id=$allowedcharParam]"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters8xml.xml new file mode 100644 index 000000000..a6d2aa6d9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/allowedcharacters/xml/allowedcharacters8xml.xml @@ -0,0 +1,13 @@ +<myRes xmlns:its="http://www.w3.org/2005/11/its"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="allowedcharParam">allowedchar</its:param> + <its:allowedCharactersRule allowedCharacters="[^*+]" selector="//content[@id=$allowedcharParam]"/> +</its:rules> + </head> + <body> + <content id="allowedchar">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua.</content> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html new file mode 100644 index 000000000..d79fd7fa5 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Directionality</title> + </head> + <body> + <p>In Hebrew, the title <q lang="he" + dir="rtl">פעילות הבינאום, W3C</q> + means "Internationalization Activity, W3C".</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html new file mode 100644 index 000000000..562676dcf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Directionality</title> + <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:dirRule selector="//h:*[@class='rtLeft']" dir="rtl" /> + </its:rules> + </script> + </head> + <body> + <p>In Hebrew, the title <q lang="he" + class="rtLeft">פעילות הבינאום, W3C</q> + means "Internationalization Activity, W3C".</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html new file mode 100644 index 000000000..8aba16362 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Directionality</title> + <link href="dir3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p>In Hebrew, the title <q lang="he" + class="rtLeft">פעילות הבינאום, W3C</q> + means "Internationalization Activity, W3C".</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml new file mode 100644 index 000000000..8e1c97b07 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.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="dirParam">rtLeft</its:param> + <its:dirRule selector="//h:*[@class=$dirParam]" dir="rtl" /> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html new file mode 100644 index 000000000..1d3ed6e15 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Directionality</title> + <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="dirParam">rtLeft</its:param> + <its:dirRule selector="//h:*[@class=$dirParam]" dir="rtl" /> + </its:rules> + </script> + </head> + <body> + <p>In Hebrew, the title <q lang="he" + class="rtLeft">פעילות הבינאום, W3C</q> + means "Internationalization Activity, W3C".</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml new file mode 100644 index 000000000..8962c0c06 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml @@ -0,0 +1,12 @@ +<text xml:lang="en"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:dirRule dir="rtl" selector="//*[@direction='rtlText']"/> + </its:rules> + </head> + <body> + <par>In Hebrew, the title <quote xml:lang="he" + direction="rtlText">פעילות הבינאום, W3C</quote> + means <quote>Internationalization Activity, W3C</quote>.</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml new file mode 100644 index 000000000..da98efb78 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml @@ -0,0 +1,11 @@ +<text xml:lang="en"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="dir2xmlrules.xml" /> + </head> + <body> + <par>In Hebrew, the title <quote xml:lang="he" + direction="rtlText">פעילות הבינאום, W3C</quote> + means <quote>Internationalization Activity, W3C</quote>.</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml new file mode 100644 index 000000000..42b2feb00 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:dirRule dir="rtl" selector="//*[@direction='rtlText']"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml new file mode 100644 index 000000000..d7f1805d6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml @@ -0,0 +1,7 @@ +<text xml:lang="en" xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <par>In Arabic, the title <quote xml:lang="ar" + its:dir="rtl">نشاط التدويل، W3C</quote> + means <quote>Internationalization Activity, W3C</quote>.</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml new file mode 100644 index 000000000..1a0b77ca8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml @@ -0,0 +1,6 @@ +<text xml:lang="en" xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <par>In Arabic, the title "<its:span xml:lang="ar" dir="rtl">نشاط التدويل، W3C</its:span>" + means "Internationalization Activity, W3C".</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml new file mode 100644 index 000000000..b8c56ac21 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml @@ -0,0 +1,13 @@ +<text xml:lang="en"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="dirParam">rtlText</its:param> + <its:dirRule dir="rtl" selector="//*[@direction=$dirParam]"/> + </its:rules> + </head> + <body> + <par>In Hebrew, the title <quote xml:lang="he" + direction="rtlText">פעילות הבינאום, W3C</quote> + means <quote>Internationalization Activity, W3C</quote>.</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml new file mode 100644 index 000000000..0d60fb0cc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml @@ -0,0 +1,11 @@ +<text xml:lang="en"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="dir6xmlrules.xml" /> + </head> + <body> + <par>In Hebrew, the title <quote xml:lang="he" + direction="rtlText">פעילות הבינאום, W3C</quote> + means <quote>Internationalization Activity, W3C</quote>.</par> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml new file mode 100644 index 000000000..8ade2458f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="dirParam">rtlText</its:param> + <its:dirRule dir="rtl" selector="//*[@direction=$dirParam]"/> +</its:rules> 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 000000000..4705f4143 --- /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 000000000..9387be964 --- /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 000000000..4ccce0f96 --- /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 000000000..4446ffb6a --- /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 000000000..629e3578d --- /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 000000000..89aed8f1a --- /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 000000000..80a1da811 --- /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 000000000..b3fd0f716 --- /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 000000000..2c7674a24 --- /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 000000000..c08211fca --- /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 000000000..2660698c9 --- /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 000000000..8831dcb2b --- /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 000000000..472b38c58 --- /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 000000000..c62de54ac --- /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 000000000..472cbb755 --- /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 000000000..b9e17bd70 --- /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> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html new file mode 100644 index 000000000..d1a0595bd --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="withintext1htmlrules.xml" rel="its-rules"/> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="keyword">horse</span> + <span itemprop="keyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"/> + </p> +<!--footer--> + <p> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml new file mode 100644 index 000000000..5d49bbcd5 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.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:withinTextRule selector="//h:cite" withinText="nested"/> +</its:rules> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html new file mode 100644 index 000000000..ed7e06095 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Within text test: Default</title> + </head> + <body> + <p>Text with <span its-within-text="YES">bold</span>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html new file mode 100644 index 000000000..d76f7756b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="withintext3htmlrules.xml" rel="its-rules"/> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="firstkeyword">horse</span> + <span itemprop="secondkeyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"/> + </p> +<!--footer--> + <p> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml new file mode 100644 index 000000000..127dea6b7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.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:param name="withinTextParam">firstkeyword</its:param> +<its:withinTextRule selector="//h:cite" withinText="nested"/> +<its:withinTextRule selector="//h:section/h:span[@itemprop=$withinTextParam]" withinText="no"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html new file mode 100644 index 000000000..ac41d6b33 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> + <html> + <head> +<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="withinparam">copyright</its:param> +<its:withinTextRule selector="//h:cite" withinText="nested"/> +<its:withinTextRule selector="//h:p[@id=$withinparam]" withinText="yes"/> +</its:rules> +</script> + <meta charset=utf-8> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="keyword">horse</span> + <span itemprop="keyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"/> + </p> +<!--footer--> + <p id="copyright"> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml new file mode 100644 index 000000000..c4a44fc7b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml @@ -0,0 +1,12 @@ +<doc> + <head> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:withinTextRule withinText="yes" selector="//b|//u|//i"/> + <its:withinTextRule withinText="nested" selector="//fn"/> + </its:rules> + </head> + <body> + <p>This is a paragraph with <b>bold</b>, <i>italic</i>, and <u>underlined</u>.</p> + <p>This is a paragraph with a footnote<fn>This is the text of the footnote</fn> at the middle.</p> + </body> + </doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml new file mode 100644 index 000000000..c0d081067 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<myDocument xmlns="http://my.DocumentURI/" xml:lang="en"> + <prolog> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="withintext2xmlrules.xml" + xmlns:d="http://my.DocumentURI/"> + <its:withinTextRule selector="//d:keywords/d:kw" withinText="no"/> +</its:rules> + <author>Zebulon Fairfield</author> + <version>version 12, revision 2 - 2006-08-14</version> + <keywords><kw>horse</kw><kw>appaloosa</kw></keywords> + <storageKey>articles-6D272BA9-3B89CAD8</storageKey> + </prolog> + <content> + <section> + <title>Appaloosa</title> + <p>The Appaloosa<fnote>The name comes from "Palouse horse" in reference + to the Palouse River in Northern Idaho.</fnote> are rugged horses + originally breed by the <kw>Nez-Perce</kw> tribe in the US Northwest.</p> + <p>They are often characterized by their spotted coats, as shown + here: <img src="appaloosa.png" alt="Appaloosa horses"/></p> + </section> + <footer><p>Copyright: <em>Zebulon Inc.</em></p></footer> + </content> +</myDocument> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml new file mode 100644 index 000000000..539af5b1e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:d="http://my.DocumentURI/"> + <its:withinTextRule selector="//d:kw|//d:img|//d:em" withinText="yes"/> + <its:withinTextRule selector="//d:fnote" withinText="nested"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml new file mode 100644 index 000000000..66debdc8f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml @@ -0,0 +1,11 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <prolog> + <title its:withinText="no">Designing User Interfaces</title> + <author its:withinText="no">Janice Prakash</author> + <keywords its:withinText="no">user interface, ui, software interface</keywords> + </prolog> + <body> + <p>The book <title its:withinText="yes">Of Mice and Screens</title> by <author its:withinText="yes">Aldus + Brandywine</author> is one of the best introductions to the vast topic of designing user interfaces.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml new file mode 100644 index 000000000..1a4b3725f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml @@ -0,0 +1,12 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <prolog> + <its:span withinText="no">Designing User Interfaces</its:span> + <its:span withinText="no">Janice Prakash</its:span> + <its:span withinText="no">user interface, ui, software interface</its:span> + </prolog> + <body> + <p>The book <its:span withinText="yes">Of Mice and Screens</its:span> by <its:span withinText="yes">Aldus + Brandywine</its:span> is one of the best introductions to the vast topic of designing user interfaces.</p> + </body> +</text> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml new file mode 100644 index 000000000..37db106f6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml @@ -0,0 +1,25 @@ +<doc> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="withinTextParam">footnote</its:param> +<its:withinTextRule withinText="yes" selector="//b|//u|//i"/> +<its:withinTextRule withinText="nested" selector="//fn[@id=$withinTextParam]"/> +</its:rules> +</head> +<body> +<p> +This is a paragraph with +<b>bold</b> +, +<i>italic</i> +, and +<u>underlined</u> +. +</p> +<p> +This is a paragraph with a footnote +<fn id="footnote">This is the text of the footnote</fn> +at the middle. +</p> +</body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml new file mode 100644 index 000000000..b96c3e902 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml @@ -0,0 +1,21 @@ +<doc> +<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="withintext6xmlrules.xml"/> +</head> +<body> +<p> +This is a paragraph with +<b>bold</b> +, +<i>italic</i> +, and +<u>underlined</u> +. +</p> +<p> +This is a paragraph with a footnote +<fn id="footnote">This is the text of the footnote</fn> +at the middle. +</p> +</body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml new file mode 100644 index 000000000..6f41dd042 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml @@ -0,0 +1,5 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="withinTextParam">footnote</its:param> +<its:withinTextRule withinText="yes" selector="//b|//u|//i"/> +<its:withinTextRule withinText="nested" selector="//fn[@id=$withinTextParam]"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1html.html b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1html.html new file mode 100644 index 000000000..2b03a2541 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1html.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <link href="externalresource1htmlrules.xml" rel="its-rules"/> + <title>Video element example</title> + </head> + <body> + <video + width="640" + height="360" + src="http://www.example.com/video/v2.mp" + poster="video-image.png">If your browser doesn't support the <code>video</code> element, you can <a href="http://www.example.com/video/v2.mp">download the video</a> instead.</video> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1htmlrules.xml new file mode 100644 index 000000000..21608edb3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource1htmlrules.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:externalResourceRefRule selector="//h:video/@src" externalResourceRefPointer="."/> + <its:externalResourceRefRule selector="//h:video/@poster" externalResourceRefPointer="."/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2html.html b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2html.html new file mode 100644 index 000000000..17e79832c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <link href="externalresource2htmlrules.xml" rel="its-rules"/> + <title>Video element example</title> + </head> + <body> + <p id='1'> + <video + width="640" + height="360" + src="http://www.example.com/video/v2.mp3" + poster="video-image.png">If your browser doesn't support the <code>video</code> element, you can <a href="http://www.example.com/video/v2.mp3">download the video</a> instead.</video> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2htmlrules.xml new file mode 100644 index 000000000..34c66b5ec --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource2htmlrules.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="externalresourceParam">1</its:param> + <its:externalResourceRefRule selector="//h:p[@id=$externalresourceParam]/h:video" externalResourceRefPointer="@poster"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource3html.html b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource3html.html new file mode 100644 index 000000000..98c13a12e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/html/externalresource3html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <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="externalresourceParam">video-image.png</its:param> + <its:externalResourceRefRule selector="//h:video[@poster=$externalresourceParam]" externalResourceRefPointer="@src"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Video element example</title> + </head> + <body> + <video + width="640" + height="360" + src="http://www.example.com/video/v2.mp" + poster="video-image.png">If your browser doesn't support the <code>video</code> element, you can <a href="http://www.example.com/video/v2.mp">download the video</a> instead.</video> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource1xml.xml new file mode 100644 index 000000000..51b640e7e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource1xml.xml @@ -0,0 +1,24 @@ +<doc + xmlns:its="http://www.w3.org/2005/11/its" + xmlns:dbk="http://docbook.org/ns/docbook" > + <its:rules version="2.0"> + <its:externalResourceRefRule selector="//dbk:imagedata | //dbk:audiodata | //dbk:videodata" externalResourceRefPointer="@fileref"/> + </its:rules> + <dbk:mediaobject> + <dbk:videoobject> + <dbk:videodata fileref="movie.avi"/> + </dbk:videoobject> + <dbk:imageobject> + <dbk:imagedata fileref="movie-frame.gif"/> + </dbk:imageobject> + <dbk:textobject> + <dbk:para>This video illustrates the proper way to assemble an inverting time distortion + device. </dbk:para> + <dbk:warning> + <dbk:para> It is imperative that the primary and secondary temporal couplings not be + mounted in the wrong order. Temporal catastrophe is the likely result. The + future you destroy may be your own. </dbk:para> + </dbk:warning> + </dbk:textobject> + </dbk:mediaobject> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xml.xml new file mode 100644 index 000000000..818766d0e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xml.xml @@ -0,0 +1,22 @@ +<doc + xmlns:its="http://www.w3.org/2005/11/its" + xmlns:dbk="http://docbook.org/ns/docbook" > + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="externalresource2xmlrules.xml"/> + <dbk:mediaobject> + <dbk:videoobject> + <dbk:videodata fileref="movie.avi"/> + </dbk:videoobject> + <dbk:imageobject> + <dbk:imagedata fileref="movie-frame.gif"/> + </dbk:imageobject> + <dbk:textobject> + <dbk:para>This video illustrates the proper way to assemble an inverting time distortion + device. </dbk:para> + <dbk:warning> + <dbk:para> It is imperative that the primary and secondary temporal couplings not be + mounted in the wrong order. Temporal catastrophe is the likely result. The + future you destroy may be your own. </dbk:para> + </dbk:warning> + </dbk:textobject> + </dbk:mediaobject> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xmlrules.xml new file mode 100644 index 000000000..718135f5e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource2xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:dbk="http://docbook.org/ns/docbook" version="2.0"> + <its:externalResourceRefRule selector="//dbk:imagedata | //dbk:audiodata | //dbk:videodata" externalResourceRefPointer="@fileref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xml.xml new file mode 100644 index 000000000..0528bb9c6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xml.xml @@ -0,0 +1,28 @@ +<doc + xmlns:its="http://www.w3.org/2005/11/its" + xmlns:dbk="http://docbook.org/ns/docbook" > + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="externalresource3xmlrules.xml"/> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:dbk="http://docbook.org/ns/docbook" version="2.0"> + <its:externalResourceRefRule selector="//dbk:audiodata" externalResourceRefPointer="@fileref"/> + </its:rules> + <dbk:mediaobject> + <dbk:videoobject> + <dbk:videodata fileref="movie.avi"/> + </dbk:videoobject> + <dbk:audioobject> + <dbk:audiodata fileref="movie.mp3"/> + </dbk:audioobject> + <dbk:imageobject> + <dbk:imagedata fileref="movie-frame.gif"/> + </dbk:imageobject> + <dbk:textobject> + <dbk:para>This video illustrates the proper way to assemble an inverting time distortion + device. </dbk:para> + <dbk:warning> + <dbk:para> It is imperative that the primary and secondary temporal couplings not be + mounted in the wrong order. Temporal catastrophe is the likely result. The + future you destroy may be your own. </dbk:para> + </dbk:warning> + </dbk:textobject> + </dbk:mediaobject> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xmlrules.xml new file mode 100644 index 000000000..383781cec --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:dbk="http://docbook.org/ns/docbook" version="2.0"> + <its:externalResourceRefRule selector="//dbk:imagedata | //dbk:videodata" externalResourceRefPointer="@fileref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource4xml.xml new file mode 100644 index 000000000..76df2ccd9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource4xml.xml @@ -0,0 +1,25 @@ +<doc + xmlns:its="http://www.w3.org/2005/11/its" + xmlns:dbk="http://docbook.org/ns/docbook" > + <its:rules version="2.0"> + <its:param name="externalResourceParam">movie-frame.gif</its:param> + <its:externalResourceRefRule selector="//dbk:imagedata[@fileref=$externalResourceParam]" externalResourceRefPointer="@fileref"/> + </its:rules> + <dbk:mediaobject> + <dbk:videoobject> + <dbk:videodata fileref="movie.avi"/> + </dbk:videoobject> + <dbk:imageobject> + <dbk:imagedata fileref="movie-frame.gif"/> + </dbk:imageobject> + <dbk:textobject> + <dbk:para>This video illustrates the proper way to assemble an inverting time distortion + device. </dbk:para> + <dbk:warning> + <dbk:para> It is imperative that the primary and secondary temporal couplings not be + mounted in the wrong order. Temporal catastrophe is the likely result. The + future you destroy may be your own. </dbk:para> + </dbk:warning> + </dbk:textobject> + </dbk:mediaobject> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xml.xml new file mode 100644 index 000000000..d3e376467 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xml.xml @@ -0,0 +1,20 @@ +<doc xmlns:dbk="http://docbook.org/ns/docbook" > + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="externalresource5xmlrules.xml"/> + <dbk:mediaobject> + <dbk:videoobject> + <dbk:videodata fileref="movie.avi"/> + </dbk:videoobject> + <dbk:imageobject> + <dbk:imagedata fileref="movie-frame.gif"/> + </dbk:imageobject> + <dbk:textobject> + <dbk:para>This video illustrates the proper way to assemble an inverting time distortion + device. </dbk:para> + <dbk:warning> + <dbk:para> It is imperative that the primary and secondary temporal couplings not be + mounted in the wrong order. Temporal catastrophe is the likely result. The + future you destroy may be your own. </dbk:para> + </dbk:warning> + </dbk:textobject> + </dbk:mediaobject> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xmlrules.xml new file mode 100644 index 000000000..01209738e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/externalresource/xml/externalresource5xmlrules.xml @@ -0,0 +1,5 @@ +<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" + xmlns:dbk="http://docbook.org/ns/docbook"> + <its:param name="externalResourceParam">movie-frame.gif</its:param> + <its:externalResourceRefRule selector="//dbk:imagedata[@fileref=$externalResourceParam]" externalResourceRefPointer="@fileref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1html.html b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1html.html new file mode 100644 index 000000000..b345f202f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Id Value</title> + <link href="idvalue1htmlrules.xml" rel="its-rules"/> +</head> +<body> + <p id="settingsMissing"> + <b id="text">Can't find settings file.</b> + <var id="desc">The module cannot find the default settings file. + You need to re-initialize the system.</var> + </p> +</body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1htmlrules.xml new file mode 100644 index 000000000..fb049999c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue1htmlrules.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:idValueRule selector="//h:p" idValue="@id"/> + <its:idValueRule selector="//h:b" idValue="@id"/> + <its:idValueRule selector="//h:var" idValue="@id"/> +</its:rules> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2html.html b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2html.html new file mode 100644 index 000000000..8b53d3ddf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Id Value</title> + <link href="idvalue2htmlrules.xml" rel="its-rules"/> +</head> +<body> + <p id="settingsMissing"> + <b id="text">Can't find settings file.</b> + <var id="desc">The module cannot find the default settings file. + You need to re-initialize the system.</var> + <b id="crashtext">This computer is now crashing GOODBYE!!</b> + </p> +</body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2htmlrules.xml new file mode 100644 index 000000000..942af0dbe --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue2htmlrules.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="idvalueparam">text</its:param> + <its:idValueRule selector="//h:p" idValue="@id"/> + <its:idValueRule selector="//h:b[@id=$idvalueparam]" idValue="@id"/> + <its:idValueRule selector="//h:b[@id='crashtext']" idValue="@id"/> + <its:idValueRule selector="//h:var" idValue="@id"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue3html.html b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue3html.html new file mode 100644 index 000000000..4030307b1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/html/idvalue3html.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <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="idvalueparam">text</its:param> + <its:idValueRule selector="//h:p" idValue="@id"/> + <its:idValueRule selector="//h:b[@id=$idvalueparam]" idValue="@id"/> + <its:idValueRule selector="//h:var" idValue="@id"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Id Value</title> +</head> +<body> + <p id="settingsMissing"> + <b id="text">Can't find settings file.</b> + <var id="desc">The module cannot find the default settings file. + You need to re-initialize the system.</var> + </p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue1xml.xml new file mode 100644 index 000000000..8b2869b12 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue1xml.xml @@ -0,0 +1,20 @@ +<resource + xmlns:its="http://www.w3.org/2005/11/its" > + <its:rules version="2.0"> + <its:idValueRule selector="//text" idValue="../@name"/> + </its:rules> +<webform> + <entry name="btn.OK"> + <text>OK</text> + <pos>1, 1</pos> + <trig>sendOK</trig> + </entry> +</webform> +<webform> + <entry name="btn.CANCEL"> + <text>Cancel</text> + <pos>2, 1</pos> + <trig>cancelAll</trig> + </entry> +</webform> +</resource> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue2xml.xml new file mode 100644 index 000000000..a27ad31d8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue2xml.xml @@ -0,0 +1,4 @@ +<file> + <res name="retryBtn" xml:id="btnAgain">Try Again</res> + <res name="retryTip">click this to re-run the process with the current settings.</res> +</file> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xml.xml new file mode 100644 index 000000000..6b19c6378 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xml.xml @@ -0,0 +1,13 @@ +<resource> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="idvalue3xmlrules.xml"/> + <entry name="btn.OK"> + <text>OK</text> + <pos>1, 1</pos> + <trig>sendOK</trig> + </entry> + <entry name="btn.CANCEL"> + <text>Cancel</text> + <pos>2, 1</pos> + <trig>cancelAll</trig> + </entry> +</resource> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xmlrules.xml new file mode 100644 index 000000000..5ff498f76 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue3xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:idValueRule selector="//entry" idValue="@name"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xml.xml new file mode 100644 index 000000000..909bfd270 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xml.xml @@ -0,0 +1,17 @@ +<resource> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="idvalue4xmlrules.xml"/> + <webform id="1"> + <entry name="btn.OK"> + <text>OK</text> + <pos>1, 1</pos> + <trig>sendOK</trig> + </entry> + </webform> + <webform id="2"> + <entry name="btn.CANCEL"> + <text>Cancel</text> + <pos>2, 1</pos> + <trig>cancelAll</trig> + </entry> + </webform> +</resource> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xmlrules.xml new file mode 100644 index 000000000..59e7325ec --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue4xmlrules.xml @@ -0,0 +1,4 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="idvalueParam">1</its:param> + <its:idValueRule selector="//webform[@id=$idvalueParam]/entry" idValue="@name"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue5xml.xml new file mode 100644 index 000000000..4b356b09e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/idvalue/xml/idvalue5xml.xml @@ -0,0 +1,20 @@ +<resource> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="idvalueParam">1</its:param> + <its:idValueRule selector="//webform[@id=$idvalueParam]/entry" idValue="@name"/> + </its:rules> + <webform id="1"> + <entry name="btn.OK"> + <text>OK</text> + <pos>1, 1</pos> + <trig>sendOK</trig> + </entry> + </webform> + <webform id="2"> + <entry name="btn.CANCEL"> + <text>Cancel</text> + <pos>2, 1</pos> + <trig>cancelAll</trig> + </entry> + </webform> +</resource> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1html.html b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1html.html new file mode 100644 index 000000000..b41ecb6bf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> + <html lang="en"> + <head> + <meta charset=utf-8> + <link href="languageinfo1htmlrules.xml" rel="its-rules"/> + <title>EXAMPLE</title> + </head> + <body> + <p>The motto of Québec is: + <q lang="fr-CA">Je me souviens</q> + .</p> + <p>La devise du Québec est : + <q lang="fr-CA">Je me souviens</q> + .</p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1htmlrules.xml new file mode 100644 index 000000000..d6bfe44e0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo1htmlrules.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:langRule selector="/h:*" langPointer="@lang"/> +<its:langRule selector="//h:q" langPointer="@lang"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2html.html b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2html.html new file mode 100644 index 000000000..9d449eff5 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="languageinfo2htmlrules.xml" rel="its-rules"/> + <title>EXAMPLE</title> + </head> + <body> + <p>The motto of Québec is: + <q lang="fr-CA">Je me souviens</q> + .</p> + <p>La devise du Québec est : + <q lang="fr-CA">Je me souviens</q> + .</p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2htmlrules.xml new file mode 100644 index 000000000..7babe27de --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo2htmlrules.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="langParam">fr-CA</its:param> +<its:langRule selector="//h:q[@lang=$langParam]" langPointer="@lang"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo3html.html b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo3html.html new file mode 100644 index 000000000..021a5375c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/html/languageinfo3html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> +<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="langinfoparam">2</its:param> + <its:langRule selector="//h:p[@id=$langinfoparam]/h:q" langPointer="@lang"/> + </its:rules> +</script> + <title>EXAMPLE</title> + </head> + <body> + <p id="1">The motto of Québec is: + <q>Je me souviens</q> + .</p> + <p id="2">La devise du Québec est : + <q lang="fr-CA">Je me souviens</q> + .</p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo1xml.xml new file mode 100644 index 000000000..768cca6d0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo1xml.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<text> + <head> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:langRule selector="//content" langPointer="@language"/> + <its:langRule selector="//q" langPointer="@language"/> + </its:rules> + </head> + <content language="en"> + <par>The motto of Québec is: <q language="fr-CA">Je me souviens</q>.</par> + <par>The one of Canada: <q language="la">A mari usque ad mare</q>.</par> + </content> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xml.xml new file mode 100644 index 000000000..c534bcce7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xml.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<text language="en"> + <head> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="languageinfo2xmlrules.xml"> + <its:langRule selector="//content/item/text" langPointer="../lang"/> + </its:rules> + </head> + <content> + <item> + <lang>en</lang> + <text>The motto of Québec is: <q language="fr-CA">Je me souviens</q>.</text> + </item> + <item> + <lang>fr-CA</lang> + <text>La devise du Québec est : <q>Je me souviens</q>.</text> + </item> + </content> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xmlrules.xml new file mode 100644 index 000000000..bf7a0570d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo2xmlrules.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:langRule selector="/text" langPointer="@language"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo3xml.xml new file mode 100644 index 000000000..80cd2bfd4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo3xml.xml @@ -0,0 +1,20 @@ +<text language="en"> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="langParam">fr-CA</its:param> +<its:langRule selector="//par/q[@language=$langParam]" langPointer="@language"/> +</its:rules> +</head> +<content> +<par> +The motto of Québec is: +<q language="fr-CA">Je me souviens</q> +. +</par> +<par> +The one of Canada: +<q language="la">A mari usque ad mare</q> +. +</par> +</content> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xml.xml new file mode 100644 index 000000000..3b28792af --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xml.xml @@ -0,0 +1,24 @@ +<text language="en"> +<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="languageinfo4xmlrules.xml"> +</its:rules> +</head> +<content> +<item> +<lang>en</lang> +<text> +The motto of Québec is: +<q language="fr-CA">Je me souviens</q> +. +</text> +</item> +<item> +<lang>fr-CA</lang> +<text> +La devise du Québec est : +<q>Je me souviens</q> +. +</text> +</item> +</content> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xmlrules.xml new file mode 100644 index 000000000..517f40199 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/languageinformation/xml/languageinfo4xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="langParam">fr-CA</its:param> +<its:langRule selector="//q[@language=$langParam]" langPointer="@language"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1html.html b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1html.html new file mode 100644 index 000000000..72f960404 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + <link href="locale1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1htmlrules.xml new file mode 100644 index 000000000..d87c7f941 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale1htmlrules.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:localeFilterRule selector="//h:div[@id='Canada']" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale2html.html b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale2html.html new file mode 100644 index 000000000..6e2870f60 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale2html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div its-locale-filter-list="en-CA, fr-CA" id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3html.html b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3html.html new file mode 100644 index 000000000..5f840801e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Locale filter</title> + <link href="locale3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3htmlrules.xml new file mode 100644 index 000000000..9f44ede59 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale3htmlrules.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="localeParam">Canada</its:param> + <its:localeFilterRule selector="//h:div[@id=$localeParam]" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale4html.html b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale4html.html new file mode 100644 index 000000000..d8effcdf7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale4html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <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="localeParam">Canada</its:param> + <its:localeFilterRule selector="//h:div[@id=$localeParam]" localeFilterList="en-CA, fr-CA"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale5html.html b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale5html.html new file mode 100644 index 000000000..fe5b01665 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/html/locale5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div its-locale-filter-list="*-ca"> + <p>Text for Canadian locales.</p> + </div> + <div its-locale-filter-list="*-ca" its-locale-filter-type="exclude"> + <p>Text for non-Canadian locales.</p> + </div> + <div its-locale-filter-list="*" its-locale-filter-type="ExCluDE"> + <p>Text for no locales.</p> + </div> + <div its-locale-filter-list="" its-locale-filter-type="EXCLude"> + <p>Text for all locales.</p> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale1xml.xml new file mode 100644 index 000000000..fbb4c617d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale1xml.xml @@ -0,0 +1,12 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <info> + <its:rules version="2.0"> + <its:localeFilterRule selector="//legalnotice[@role='Canada']" localeFilterList="en-CA, fr-CA"/> + </its:rules> + <legalnotice role="Canada"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale2xml.xml new file mode 100644 index 000000000..a97c8acd1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale2xml.xml @@ -0,0 +1,9 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <info> + <legalnotice + its:localeFilterList="en-CA, fr-CA"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xml.xml new file mode 100644 index 000000000..7a99e2d4e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xml.xml @@ -0,0 +1,10 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <info> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="locale3xmlrules.xml"/> + <legalnotice role="Canada"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xmlrules.xml new file mode 100644 index 000000000..5eda8cc7f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:localeFilterRule selector="//legalnotice[@role='Canada']" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xml.xml new file mode 100644 index 000000000..d3eda11e3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xml.xml @@ -0,0 +1,16 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <info> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="locale4xmlrules.xml"/> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:localeFilterRule selector="//legalnotice[@role='Germany']" localeFilterList="de-DE"/> +</its:rules> + <legalnotice role="Canada"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + <legalnotice role="Germany"> + <para>This legal notice is only for German locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xmlrules.xml new file mode 100644 index 000000000..5eda8cc7f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale4xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:localeFilterRule selector="//legalnotice[@role='Canada']" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale5xml.xml new file mode 100644 index 000000000..8e2e84a27 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale5xml.xml @@ -0,0 +1,8 @@ + +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<info> +<its:span localeFilterList="en-CA, fr-CA"> +<para>This legal notice is only for Canadian locales.</para> +</its:span> +</info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale6xml.xml new file mode 100644 index 000000000..e0881f2f1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale6xml.xml @@ -0,0 +1,14 @@ +<book> + <info> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="localeParam">Germany</its:param> + <its:localeFilterRule selector="//legalnotice[@role='Germany']" localeFilterList="de-DE"/> +</its:rules> + <legalnotice role="Canada"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + <legalnotice role="Germany"> + <para>This legal notice is only for German locales.</para> + </legalnotice> + </info> +</book>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xml.xml new file mode 100644 index 000000000..fb11bf93f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xml.xml @@ -0,0 +1,13 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <info> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="locale7xmlrules.xml"/> + <legalnotice role="Canada"> + <para>This legal notice is only for Canadian locales.</para> + </legalnotice> + <legalnotice role="Germany"> + <para>This legal notice is only for German locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xmlrules.xml new file mode 100644 index 000000000..3d851a22c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale7xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="localeParam">Germany</its:param> + <its:localeFilterRule selector="//legalnotice[@role=$localeParam]" localeFilterList="de-DE"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale8xml.xml new file mode 100644 index 000000000..ff7711929 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localefilter/xml/locale8xml.xml @@ -0,0 +1,18 @@ +<book + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <info> + <legalnotice its:localeFilterList="*-CA" its:localeFilterType="include"> + <para>Text only for Canadian locales.</para> + </legalnotice> + <legalnotice its:localeFilterList="*-CA" its:localeFilterType="exclude"> + <para>Text for non-Canadian locales.</para> + </legalnotice> + <legalnotice its:localeFilterList="*" its:localeFilterType="exclude"> + <para>Text for no locales.</para> + </legalnotice> + <legalnotice its:localeFilterList="" its:localeFilterType="exclude"> + <para>Text for all locales.</para> + </legalnotice> + </info> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html new file mode 100644 index 000000000..6c33dd2d0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locnote1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.xml new file mode 100644 index 000000000..87b8415aa --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.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:locNoteRule locNoteType="alert" selector="//h:span[@id='DisableInfo']"> +<its:locNote> +The variable {0} has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html new file mode 100644 index 000000000..21937ae3f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locnote2htmlrules.xml" rel="its-rules"/> + </head> + <body> + <section id="FileNotFound"> + <h2>FileNotFound</h2> + <p> + Indicates that the resource file {0} could not be loaded. + </p> + <span>Cannot find the file {0}.</span> + </section> + <section id="DivByZero"> + <h2>FileNotFound</h2> + <p>A division by 0 was going to be computed.</p> + <span>Invalid parameter.</span> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.xml new file mode 100644 index 000000000..2da2d203e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.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:translateRule selector="//h:section/h:p" translate="no"/> +<its:locNoteRule locNoteType="description" selector="//h:section/h:span" locNotePointer="../h:p"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html new file mode 100644 index 000000000..380ab5f88 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span id="NotFound">Cannot find {0} on {1}.</span> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.xml new file mode 100644 index 000000000..898225e43 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.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:locNoteRule locNoteType="description" selector="//h:span[@id='NotFound']" locNoteRef="ErrorsInfo.html/#NotFound"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html new file mode 100644 index 000000000..8cc2ffe19 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote4htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p id="FileNotFound" title="Comments.html#FileNotFound"> + <span>Cannot find the file {0}.</span> + </p> + <p id="DivByZero" title="Comments.html#DivByZero"> + <span>Invalid parameter.</span> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.xml new file mode 100644 index 000000000..2e0f1173e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.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:locNoteRule locNoteType="description" selector="//h:body/h:p/h:span" locNoteRefPointer="../@title"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html new file mode 100644 index 000000000..1db258ab1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="locnote5htmlrules.xml" rel="its-rules"/> + <title>EXAMPLE</title> + </head> + <body> + <p id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"/> + . + </p> + <p id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"/> + . + </p> + <p id="DisableInfo">The {0} has been disabled.</p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml new file mode 100644 index 000000000..c9d00868a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml @@ -0,0 +1,15 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule selector="//h:p[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:p[@id='2']/h:img/@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:p[@id='DisableInfo']"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html new file mode 100644 index 000000000..eea2ad93e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote6htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"/> + . + </span> + <span id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"/> + . + </span> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml new file mode 100644 index 000000000..d8a1ee4a7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml @@ -0,0 +1,15 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:span[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:span[@id='DisableInfo']"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html new file mode 100644 index 000000000..4741c323d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>LocNote test: Default</title> + </head> + <body> + <p>This is a <span its-loc-note="Check with terminology engineer" its-loc-note-type="ALERT">motherboard</span>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html new file mode 100644 index 000000000..8913b8ead --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote8htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"/> + . + </span> + <span id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"/> + . + </span> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml new file mode 100644 index 000000000..7d6c81f1e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml @@ -0,0 +1,16 @@ +<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="spanIdParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:span[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:span[@id=$spanIdParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html new file mode 100644 index 000000000..9adbbcd23 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang=en> + <head> +<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="locnoteparam">DisableInfo</its:param> + <its:locNoteRule locNoteType="alert" selector="//h:p[@id=$locnoteparam]"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> +</script> + <meta charset=utf-8> + <title>Example</title> + </head> +<body> + <p id="DisableInfo">The {0} has been disabled.</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml new file mode 100644 index 000000000..aefe57b3a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml @@ -0,0 +1,33 @@ +<msgList> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="DisableInfoParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//msg[@id=$DisableInfoParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> +</head> +<body> +<msg id="1"> +This is a hippoptamus: +<img src="hippo.png" alt="Hippo in the Chobe River"/> +. +</msg> +<msg id="2"> +This is an elephant: +<img src="elephants.png" alt="Elephants taking a mud bath"/> +. +</msg> +<msg id="DisableInfo">The {0} has been disabled.</msg> +</body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml new file mode 100644 index 000000000..20a697e98 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml @@ -0,0 +1,18 @@ +<msgList> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="locnote11xmlrules.xml"/> +</head> +<body> +<msg id="1"> +This is a hippoptamus: +<img src="hippo.png" alt="Hippo in the Chobe River"/> +. +</msg> +<msg id="2"> +This is an elephant: +<img src="elephants.png" alt="Elephants taking a mud bath"/> +. +</msg> +<msg id="DisableInfo">The {0} has been disabled.</msg> +</body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml new file mode 100644 index 000000000..43b00c70c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml @@ -0,0 +1,16 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="DisableInfoParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//msg[@id=$DisableInfoParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml new file mode 100644 index 000000000..4b5099757 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml @@ -0,0 +1,13 @@ +<myRes> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml new file mode 100644 index 000000000..166215d64 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml @@ -0,0 +1,19 @@ +<Res> + <prolog> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//msg/notes" translate="no"/> + <its:locNoteRule locNoteType="description" selector="//msg/data" + locNotePointer="../notes"/> + </its:rules> + </prolog> + <body> + <msg id="FileNotFound"> + <notes>Indicates that the resource file {0} could not be loaded.</notes> + <data>Cannot find the file {0}.</data> + </msg> + <msg id="DivByZero"> + <notes>A division by 0 was going to be computed.</notes> + <data>Invalid parameter.</data> + </msg> + </body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml new file mode 100644 index 000000000..3336af33d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml @@ -0,0 +1,12 @@ +<myRes> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="description" + selector="//msg[@id='NotFound']" + locNoteRef="ErrorsInfo.html/#NotFound" /> + </its:rules> + </head> + <body> + <msg id="NotFound">Cannot find {0} on {1}.</msg> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml new file mode 100644 index 000000000..a98b30eba --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml @@ -0,0 +1,16 @@ +<dataFile> + <prolog> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="description" selector="//body/string/data" + locNoteRefPointer="../@noteFile" /> + </its:rules> + </prolog> + <body> + <string id="FileNotFound" noteFile="Comments.html#FileNotFound"> + <data>Cannot find the file {0}.</data> + </string> + <string id="DivByZero" noteFile="Comments.html#DivByZero"> + <data>Invalid parameter.</data> + </string> + </body> +</dataFile> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml new file mode 100644 index 000000000..dac3607a3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml @@ -0,0 +1,15 @@ +<msgList> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="locnote5xmlrules.xml"> + <its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> + <its:locNote>Do not translate the word "Chobe"</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="1">This is a hippoptamus: <img src="hippo.png" alt="Hippo in the Chobe River"/>.</msg> + <msg id="2">This is an elephant: <img src="elephants.png" alt="Elephants taking a mud bath"/>.</msg> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml new file mode 100644 index 000000000..8eb7b345b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml @@ -0,0 +1,9 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule selector="//@alt" locNoteType="description"> + <its:locNote>This text will be displayed over the image.</its:locNote> + </its:locNoteRule> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml new file mode 100644 index 000000000..2df88380c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml @@ -0,0 +1,21 @@ +<msgList> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule selector="//@alt" locNoteType="description"> + <its:locNote>This text will be displayed over the image.</its:locNote> + </its:locNoteRule> + <its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> + <its:locNote>Do not translate the word "Chobe"</its:locNote> + </its:locNoteRule> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="1">This is a hippoptamus: <img src="hippo.png" alt="Hippo in the Chobe River"/>.</msg> + <msg id="2">This is an elephant: <img src="elephants.png" alt="Elephants taking a mud bath"/>.</msg> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml new file mode 100644 index 000000000..65021f8b2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml @@ -0,0 +1,20 @@ +<Res> +<prolog> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:translateRule selector="//msg/notes" translate="no"/> +<its:locNoteRule locNoteType="description" selector="//msg/data" locNotePointer="../notes"/> +</its:rules> +</prolog> +<body> +<msg id="FileNotFound"> +<notes> +Indicates that the resource file {0} could not be loaded. +</notes> +<data>Cannot find the file {0}.</data> +</msg> +<msg id="DivByZero"> +<notes>A division by 0 was going to be computed.</notes> +<data>Invalid parameter.</data> +</msg> +</body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml new file mode 100644 index 000000000..41049c968 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<Res xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body its:locNote="The variable {0} is the name of the host."> + <msg id="HostNotFound"> + <data>Host {0} cannot be found.</data> + </msg> + <msg id="HostDisconnected"> + <data>The connection with {0} has been lost.</data> + </msg> + <msg id="FileNotFound"> + <data its:locNote="{0} is a filename" its:locNoteType="alert">{0} not found.</data> + </msg> + <msg id="CannotLog"> + <data its:locNoteRef="myLocNotes.htm#CannotLog" its:locNoteType="alert">Cannot log with this username.</data> + </msg> + </body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml new file mode 100644 index 000000000..c726ea1d2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p><its:span locNote="If possible keep the non-English terms in the translated version too">Everything started when + Zebulon discovered that he had a <its:span locNoteRef="http://en.wikipedia.org/wiki/Doppelganger">doppelgänger</its:span> + who was a <b>serious</b> baseball <its:span locNoteRef="http://en.wikipedia.org/wiki/Aficionado">aficionado</its:span>.</its:span></p> + </body> +</Doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue10html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue10html.html new file mode 100644 index 000000000..e4957ac51 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue10html.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <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="locQualityIssueParam">q1</its:param> + <its:locQualityIssueRule selector="//h:span[@id=$locQualityIssueParam]" + locQualityIssueType="typographical" + locQualityIssueComment="sentence without capitalization" + locQualityIssueEnabled="yes"/> + <its:locQualityIssueRule selector="//h:span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueComment="should be 'Music can'" + locQualityIssueEnabled="yes"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Example</title> + </head> + <body> + <p> + <span id="q1">music </span> is an art form whose medium is sound and silence. + <span id="q2">Musci acn </span> take many different forms and is experienced by individuals in a range of social settings ranging from being alone to attending a large concert. + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1html.html new file mode 100644 index 000000000..cc80dd325 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locqualityissue1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span id="q1">music </span> is an art form whose medium is sound and silence. + <span id="q2">Musci acn </span> take many different forms and is experienced by individuals in a range of social settings ranging from being alone to attending a large concert. + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1htmlrules.xml new file mode 100644 index 000000000..e4b3e2039 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue1htmlrules.xml @@ -0,0 +1,10 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:locQualityIssueRule selector="//h:span[@id='q1']" + locQualityIssueType="typographical" + locQualityIssueComment="sentence without capitalization" + locQualityIssueEnabled="yes"/> + <its:locQualityIssueRule selector="//h:span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueComment="should be 'Music can'" + locQualityIssueEnabled="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2html.html new file mode 100644 index 000000000..7d80d4b26 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locqualityissue2htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span id="q1">music </span> is an art form whose medium is sound and silence. + <span id="q2">Musci acn </span> take many different forms and is experienced by individuals in a range of social settings ranging from being alone to attending a large concert. + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2htmlrules.xml new file mode 100644 index 000000000..1104dfd25 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue2htmlrules.xml @@ -0,0 +1,10 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:locQualityIssueRule selector="//h:span[@id='q1']" + locQualityIssueType="typographical" + locQualityIssueComment="sentence without capitalization" + locQualityIssueSeverity="50"/> + <its:locQualityIssueRule selector="//h:span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueComment="should be 'Music can'" + locQualityIssueSeverity="75"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3html.html new file mode 100644 index 000000000..f9ba7d918 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locqualityissue3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span id="q1">music </span> is an art form whose medium is sound and silence. + <span id="q2">Musci acn </span> take many different forms and is experienced by individuals in a range of social settings ranging from being alone to attending a large concert. + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3htmlrules.xml new file mode 100644 index 000000000..c4f45e00f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue3htmlrules.xml @@ -0,0 +1,12 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:locQualityIssueRule selector="//h:span[@id='q1']" + locQualityIssueType="typographical" + locQualityIssueComment="sentence without capitalization" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + <its:locQualityIssueRule selector="//h:span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueComment="should be 'Music can'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + </its:rules>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue4html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue4html.html new file mode 100644 index 000000000..82d205643 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue4html.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Telharmonium 1897</title> + <style type="text/css"> + [its-loc-quality-issue-type]{ + background-color:yellow; + margin:2px; + } + [its-loc-quality-issue-severity = "100"]{ + border: 2px solid red; + } + </style> + </head> + <body> + <h1>Telharmonium (1897)</h1> + <p> + <span + data-mytool-qacode="named_entity_not_found" + its-loc-quality-issue-type="inconsistent-entities" + >Christian Bale</span>(1867–1934) conceived of an instrument that could transmit its sound + from a power plant for hundreds of miles to listeners over telegraph wiring. Beginning in + 1889 the sound quality of regular telephone concerts was very poor on account of the buzzing + generated by carbon-granule microphones. As a result Cahill decided to set a new standard in + perfection of sound <span + its-loc-quality-issue-type="MiSSPeLLiNG">qaulity</span> with his instrument, a standard that would not only satisfy listeners but that + would overcome all the flaws of traditional instruments.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue5html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue5html.html new file mode 100644 index 000000000..951cfddb7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue5html.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Telharmonium 1897</title> + <style type="text/css"> + [its-loc-quality-issue-type]{ + background-color:yellow; + margin:2px; + } + [its-loc-quality-issue-severity = "100"]{ + border: 2px solid red; + } + </style> + </head> + <body> + <h1>Telharmonium (1897)</h1> + <p> + <span + data-mytool-qacode="named_entity_not_found" + its-loc-quality-issue-type="inconsistent-entities" + its-loc-quality-issue-comment="should be Thomas Cahill.">Christian Bale</span>(1867–1934) conceived of an instrument that could transmit its sound + from a power plant for hundreds of miles to listeners over telegraph wiring. Beginning in + 1889 the sound quality of regular telephone concerts was very poor on account of the buzzing + generated by carbon-granule microphones. As a result Cahill decided to set a new standard in + perfection of sound <span + its-loc-quality-issue-type="misspelling" + its-loc-quality-issue-comment="should be 'quality'">qulaity</span> with his instrument, a standard that would not only satisfy listeners but that + would overcome all the flaws of traditional instruments.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue6html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue6html.html new file mode 100644 index 000000000..ac35ca5ef --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue6html.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Telharmonium 1897</title> + <style type="text/css"> + [its-loc-quality-issue-type]{ + background-color:yellow; + margin:2px; + } + [its-loc-quality-issue-severity = "100"]{ + border: 2px solid red; + } + </style> + </head> + <body> + <h1>Telharmonium (1897)</h1> + <p> + <span + data-mytool-qacode="named_entity_not_found" + its-loc-quality-issue-type="inconsistent-entities" + its-loc-quality-issue-comment="should be Thomas Cahill." + its-loc-quality-issue-profile-ref="http://example.org/qaMovel/v1" + its-loc-quality-issue-severity="100" + its-loc-quality-issue-enabled="yes">Christian Bale</span>(1867–1934) conceived of an instrument that could transmit its sound + from a power plant for hundreds of miles to listeners over telegraph wiring. Beginning in + 1889 the sound quality of regular telephone concerts was very poor on account of the buzzing + generated by carbon-granule microphones. As a result Cahill decided to set a new standard in + perfection of sound <span + its-loc-quality-issue-type="misspelling" + its-loc-quality-issue-comment="should be 'quality'" + its-loc-quality-issue-profile-ref="grammar" + its-loc-quality-issue-severity="50" + its-loc-quality-issue-enabled="no">qulaity</span> with his instrument, a standard that would not only satisfy listeners but that + would overcome all the flaws of traditional instruments.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue7html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue7html.html new file mode 100644 index 000000000..01beb027e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue7html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Test</title> + <script type="application/its+xml" id="lq1"> + <its:locQualityIssues xml:id="lq1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:locQualityIssue + locQualityIssueType="misspelling" + locQualityIssueComment="'c'es' is unknown. Could be 'c'est'" + locQualityIssueSeverity="50"/> + </its:locQualityIssues> + </script> + <style type="text/css">.qaissue { background-color: yellow; } </style> + </head> + <body> + <p> + <span its-loc-quality-issues-ref="#lq1">c'es</span> pourquoi il n'était pas coupable</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8html.html new file mode 100644 index 000000000..1af8d7986 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Example</title> + <link href="locqualityissue8htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span id="q1">music </span> is an art form whose medium is sound and silence. + <span id="q2">Musci acn </span> take many different forms and is experienced by individuals in a range of social settings ranging from being alone to attending a large concert. + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8htmlrules.xml new file mode 100644 index 000000000..b6b7ae996 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue8htmlrules.xml @@ -0,0 +1,13 @@ + <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="locQualityIssueParam">q1</its:param> + <its:locQualityIssueRule selector="//h:span[@id=$locQualityIssueParam]" + locQualityIssueType="typographical" + locQualityIssueComment="Sentence without capitalization" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + <its:locQualityIssueRule selector="//h:span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueComment="should be 'Music can'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + </its:rules>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9html.html new file mode 100644 index 000000000..da42fa05d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9html.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Test</title> + </head> + <body> + <p> + <span its-loc-quality-issues-ref="locqualityissue9htmlstandoff.xml#lq1">c'es</span> pourquoi il n'était pas coupable</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9htmlstandoff.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9htmlstandoff.xml new file mode 100644 index 000000000..d81222e66 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/html/locqualityissue9htmlstandoff.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" ?> +<someDataFile xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<its:locQualityIssues xml:id="lq1"> + <its:locQualityIssue + locQualityIssueType="misspelling" + locQualityIssueComment="'c'es' is unknown. Could be 'c'est'" + locQualityIssueSeverity="50"/> + <its:locQualityIssue + locQualityIssueType="grammar" + locQualityIssueComment="Missing capital on the first word of a sentence." + locQualityIssueSeverity="30"/> +</its:locQualityIssues> +</someDataFile>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue10xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue10xml.xml new file mode 100644 index 000000000..c1d164462 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue10xml.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<para><its:span locQualityIssueComment="Sentence without capitalization" locQualityIssueSeverity="50" locQualityIssueProfileRef="http://example.org/qaMovel/v1">transport</its:span> or transportation is the movement of people, animals and goods from one location to another.Modes of <its:span locQualityIssueComment="should be 'transport include'" locQualityIssueSeverity="75" locQualityIssueProfileRef="http://example.org/qaMovel/v1">tranport inc.</its:span> air, rail, road, water, cable, pipeline, and space.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue11xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue11xml.xml new file mode 100644 index 000000000..399e66713 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue11xml.xml @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<doc> + <header> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="locqualityissueParam">q1</its:param> + <its:locQualityIssueRule selector="//span[@id=$locqualityissueParam]" + locQualityIssueComment="Sentence without capitalization" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueComment="should be 'transport include'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + </its:rules> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xml.xml new file mode 100644 index 000000000..1574e8c77 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xml.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<doc> + <header> + <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="locqualityissue12xmlrules.xml"/> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xmlrules.xml new file mode 100644 index 000000000..dc42a43b4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue12xmlrules.xml @@ -0,0 +1,11 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="locqualityissueParam">q1</its:param> + <its:locQualityIssueRule selector="//span[@id=$locqualityissueParam]" + locQualityIssueComment="Sentence without capitalization" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueComment="should be 'transport include'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue13xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue13xml.xml new file mode 100644 index 000000000..b6722c499 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue13xml.xml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <file> + <header> + <its:rules version="2.0"> + <its:locQualityIssueRule selector="//mrk[@type='x-itslq']" + locQualityIssuesRefPointer="@ref"/> + </its:rules> + </header> + <unit id="1"> + <segment> + <source>This is the content</source> + <target><mrk type="x-itslq" ref="#lq1">c'es</mrk> le contenu</target> + </segment> + <its:locQualityIssues xml:id="lq1"> + <its:locQualityIssue + locQualityIssueComment="'c'es' is unknown. Could be 'c'est'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1" + locQualityIssueEnabled="yes"/> + </its:locQualityIssues> + </unit> + </file> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue1xml.xml new file mode 100644 index 000000000..ee70d1d8b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue1xml.xml @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<doc> + <header> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locQualityIssueRule selector="//span[@id='q1']" + locQualityIssueType="typographical"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueType="misspelling"/> + </its:rules> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> + + + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue2xml.xml new file mode 100644 index 000000000..5be446292 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue2xml.xml @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<doc> + <header> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locQualityIssueRule selector="//span[@id='q1']" + locQualityIssueComment="Sentence without capitalization" + locQualityIssueSeverity="50"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueComment="should be 'transport include'" + locQualityIssueSeverity="75"/> + </its:rules> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue3xml.xml new file mode 100644 index 000000000..a51fbc0a3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue3xml.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<doc> + <header> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locQualityIssueRule selector="//span[@id='q1']" + locQualityIssueType="typographical" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1" + locQualityIssueEnabled="yes"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1" + locQualityIssueEnabled="yes"/> + </its:rules> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue4xml.xml new file mode 100644 index 000000000..d50f903ba --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue4xml.xml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <header> + <its:rules version="2.0"> + <its:locQualityIssueRule selector="//span[@id='q1']" + locQualityIssuesRefPointer="./@issues"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueType="misspelling" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1" + locQualityIssueEnabled="yes"/> + </its:rules> + </header> + <para> + <span id="q1" issues="#id1234">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. + </para> + <its:locQualityIssues xml:id="id1234"> + <its:locQualityIssue locQualityIssueType="typographical" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1" + locQualityIssueEnabled="no"/> + </its:locQualityIssues> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xml.xml new file mode 100644 index 000000000..b5fcceabf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xml.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<doc> + <header> + <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="locqualityissue5xmlrules.xml"/> + </header> + <para> + <span id="q1">transport</span> or transportation is the movement of people, animals and goods from one location to another. + Modes of <span id="q2">tranport inc.</span> air, rail, road, water, cable, pipeline, and space. +</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xmlrules.xml new file mode 100644 index 000000000..a778ffc9b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue5xmlrules.xml @@ -0,0 +1,10 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locQualityIssueRule selector="//span[@id='q1']" + locQualityIssueType="typographical" + locQualityIssueSeverity="50" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + <its:locQualityIssueRule selector="//span[@id='q2']" + locQualityIssueComment="should be 'transport include'" + locQualityIssueSeverity="75" + locQualityIssueProfileRef="http://example.org/qaMovel/v1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue6xml.xml new file mode 100644 index 000000000..e8c41ebfc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue6xml.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <para><span its:locQualityIssueType="typographical">transport</span> or transportation is the movement of people, animals and goods from one location to another.Modes of <span its:locQualityIssueType="misspelling">tranport inc.</span> air, rail, road, water, cable, pipeline, and space.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue7xml.xml new file mode 100644 index 000000000..e81339948 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue7xml.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <para><span its:locQualityIssueComment="Sentence without capitalization">transport</span> or transportation is the movement of people, animals and goods from one location to another.Modes of <span its:locQualityIssueComment="should be 'transport include'">tranport inc.</span> air, rail, road, water, cable, pipeline, and space.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue8xml.xml new file mode 100644 index 000000000..2fffc9148 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue8xml.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<para><span its:locQualityIssueComment="Sentence without capitalization" its:locQualityIssueSeverity="50">transport</span> or transportation is the movement of people, animals and goods from one location to another.Modes of <span its:locQualityIssueComment="should be 'transport include'" its:locQualityIssueSeverity="75">tranport inc.</span> air, rail, road, water, cable, pipeline, and space.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue9xml.xml new file mode 100644 index 000000000..fa4a10885 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityissue/xml/locqualityissue9xml.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<para><span its:locQualityIssueComment="Sentence without capitalization" its:locQualityIssueSeverity="50" its:locQualityIssueProfileRef="http://example.org/qaMovel/v1">transport</span> or transportation is the movement of people, animals and goods from one location to another.Modes of <span its:locQualityIssueComment="should be 'transport include'" its:locQualityIssueSeverity="75" its:locQualityIssueProfileRef="http://example.org/qaMovel/v1">tranport inc.</span> air, rail, road, water, cable, pipeline, and space.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating1html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating1html.html new file mode 100644 index 000000000..668b3323e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating1html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html + its-loc-quality-rating-profile-ref="http://example.org/qamodel/v13" + its-loc-quality-rating-score="100" + its-loc-quality-rating-score-threshold="95" + lang="en"> + <head> + <meta charset=utf-8> + <title>Rikki-tikki-tavi</title> + </head> + <body> + <p>This is the story of the great war that Rikki-tikki-tavi fought single-handed, + through the bath-rooms of the big bungalow in Segowlee cantonment. Darzee, the + Tailorbird, helped him, and Chuchundra, the musk-rat, who never comes out into + the middle of the floor, but always creeps round by the wall, gave him advice, + but Rikki-tikki did the real fighting.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating2html.html b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating2html.html new file mode 100644 index 000000000..df7ff8573 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/html/locqualityrating2html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html + its-loc-quality-rating-profile-ref="http://example.org/qamodel/v13" + its-loc-quality-rating-vote="-1" + its-loc-quality-rating-vote-threshold="10" + lang="en"> + <head> + <meta charset=utf-8> + <title>Rikki-tikki-tavi</title> + </head> + <body> + <p>This is the story of the great war that Rikki-tikki-tavi fought single-handed, + through the bath-rooms of the big bungalow in Segowlee cantonment. Darzee, the + Tailorbird, helped him, and Chuchundra, the musk-rat, who never comes out into + the middle of the floor, but always creeps round by the wall, gave him advice, + but Rikki-tikki did the real fighting.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating1xml.xml new file mode 100644 index 000000000..e08b1d0bf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating1xml.xml @@ -0,0 +1,11 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" + its:locQualityRatingScore="100" + its:locQualityRatingScoreThreshold="95" + its:locQualityRatingProfileRef="http://example.org/qaModel/v13"> + <title>The Adventures of Tom Sawyer</title> + <para>He got home pretty late that night, and when he climbed cautiously in at + the window, he uncovered an ambuscade, in the person of his aunt; and when + she saw the state his clothes were in her resolution to turn his Saturday + holiday into captivity at hard labor became adamantine in its + firmness.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating2xml.xml new file mode 100644 index 000000000..437fdd26f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating2xml.xml @@ -0,0 +1,11 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" + its:locQualityRatingVote="-1" + its:locQualityRatingVoteThreshold="10" + its:locQualityRatingProfileRef="http://example.org/qaModel/v13"> + <title>The Adventures of Tom Sawyer</title> + <para>He got home pretty late that night, and when he climbed cautiously in at + the window, he uncovered an ambuscade, in the person of his aunt; and when + she saw the state his clothes were in her resolution to turn his Saturday + holiday into captivity at hard labor became adamantine in its + firmness.</para> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating3xml.xml new file mode 100644 index 000000000..28b60154b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating3xml.xml @@ -0,0 +1,11 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <title>The Adventures of Tom Sawyer</title> + <its:span locQualityRatingScore="100" + locQualityRatingScoreThreshold="95" + locQualityRatingProfileRef="http://example.org/qaModel/v13"> + <para>He got home pretty late that night, and when he climbed cautiously in at + the window, he uncovered an ambuscade, in the person of his aunt; and when + she saw the state his clothes were in her resolution to turn his Saturday + holiday into captivity at hard labor became adamantine in its + firmness.</para></its:span> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating4xml.xml new file mode 100644 index 000000000..101566abb --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/locqualityrating/xml/locqualityrating4xml.xml @@ -0,0 +1,10 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <title>The Adventures of Tom Sawyer</title> + <its:span locQualityRatingVote="-1" + locQualityRatingVoteThreshold="10" + locQualityRatingProfileRef="http://example.org/qaModel/v13"><para>He got home pretty late that night, and when he climbed cautiously in at + the window, he uncovered an ambuscade, in the person of his aunt; and when + she saw the state his clothes were in her resolution to turn his Saturday + holiday into captivity at hard labor became adamantine in its + firmness.</para></its:span> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html new file mode 100644 index 000000000..91f6c3b73 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about European capitals.</title> + </head> + <body> + <p> + <span its-mt-confidence="0.8982" its-annotators-ref="mt-confidence|file:///tools.xml#T1"> Dublin is the capital of Ireland.</span> + <span its-mt-confidence="0.8536" its-annotators-ref="mt-confidence|file:///tools.xml#T2"> The capital of the Czech Republic is Prague.</span> + <span its-mt-confidence="0.7982" its-annotators-ref="mt-confidence|file:///tools.xml#T3">Madrid is the capital of Spain.</span> + <span its-mt-confidence="0.9982" its-annotators-ref="mt-confidence|file:///tools.xml#T4">Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html new file mode 100644 index 000000000..7a57318c0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about Dublin and Prague MTed from Czech with mtConfidence locally.</title> + <link href="mtconfidence2htmlrules.xml" rel="its-rules"/> + </head> + <body its-annotators-ref="mt-confidence|file:///tools.xml#T0"> + <p> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T1"> Dublin is the capital of Ireland.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T2"> The capital of the Czech Republic is Prague.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T3">Madrid is the capital of Spain.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T4">Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml new file mode 100644 index 000000000..19cb15483 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.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:mtConfidenceRule selector="/h:html/h:body/h:p" mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html new file mode 100644 index 000000000..c0f99ac8f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about Dublin and Prague MTed from Czech with mtConfidence locally.</title> + <link href="mtconfidence3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T1" id="ireland"> Dublin is the capital of Ireland.</span> + <span id="czech"> The capital of the Czech Republic is Prague.</span> + <span id="germany">Berlin is the capital of Germany.</span> + <span id="london">London is the capital of England</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml new file mode 100644 index 000000000..f6e20179a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.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:param name="mtParam">ireland</its:param> + <its:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id=$mtParam]" + mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html new file mode 100644 index 000000000..580aee97c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <title>Example of MT Confidence with annotator references.</title> + <link href="mtconfidence4htmlrules.xml" rel="its-rules"/> + </head> + <body its-annotators-ref="mt-confidence|file:///tools.xml#T1" > + <p its-annotators-ref="text-analysis|file:///tools.xml#T2" > + <span id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span id="spain">Madrid is the capital of Spain.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span id="england">London is the capital of England</span> + </p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml new file mode 100644 index 000000000..151a0ff17 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.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:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id='ireland']" + mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html new file mode 100644 index 000000000..fe343db0b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <title>Sentences about European capitals.</title> + <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="mtParam">ireland</its:param> + <its:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id=$mtParam]" mtConfidence="0.8982"/> + </its:rules> + </script> + </head> + <body> + <p its-annotators-ref="mt-confidence|file:///tools.xml#T1"> + <span id="ireland"> Dublin is the capital of Ireland.</span> + <span> The capital of the Czech Republic is Prague.</span> + <span>Madrid is the capital of Spain.</span> + <span>Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml new file mode 100644 index 000000000..c3cdedad0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml @@ -0,0 +1,22 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='ireland']" + mtConfidence="0.6982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='england']" + mtConfidence="0.7982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='spain']" + mtConfidence="0.8982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.8982"/> + </its:rules> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml new file mode 100644 index 000000000..2f4941637 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml @@ -0,0 +1,13 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<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="mtconfidence2xmlrules.xml"/> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml new file mode 100644 index 000000000..36b0450b9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml @@ -0,0 +1,10 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='ireland']" + mtConfidence="0.6982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='england']" + mtConfidence="0.7982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='spain']" + mtConfidence="0.8982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.5982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml new file mode 100644 index 000000000..31be4342c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml @@ -0,0 +1,10 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" its:mtConfidence="0.6982">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" its:mtConfidence="0.7982">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" its:mtConfidence="0.9982">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" its:mtConfidence="0.6982">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml new file mode 100644 index 000000000..04efe69da --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml @@ -0,0 +1,10 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.9982">Dublin is the capital city of Ireland.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.8982">Madrid is the capital of Spain.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.7982">Berlin is the capital of Germany.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982">London is the capital of England</its:span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml new file mode 100644 index 000000000..3e8484cec --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml @@ -0,0 +1,13 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="mtconfidence5xmlrules.xml"/> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml new file mode 100644 index 000000000..296ff363a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml @@ -0,0 +1,4 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="mtconfidenceParam">ireland</its:param> + <its:mtConfidenceRule selector="//span[@id=$mtconfidenceParam]" mtConfidence="0.6982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml new file mode 100644 index 000000000..c846e6c7c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml @@ -0,0 +1,16 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="mtconfidenceParam">ireland</its:param> + <its:mtConfidenceRule selector="//span[@id=$mtconfidenceParam]" mtConfidence="0.6982"/> + </its:rules> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml new file mode 100644 index 000000000..b0d545b8c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml @@ -0,0 +1,16 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.8982"/> + </its:rules> +</head> +<body its:annotatorsRef="mt-confidence|file:///tools.xml#T1" > + <p its:annotatorsRef="text-analysis|file:///tools.xml#T2" > + <span id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span id="england">London is the capital of England</span> + </p> +</body> +</text>
\ No newline at end of file diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace1xml.xml new file mode 100644 index 000000000..16330a2ee --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace1xml.xml @@ -0,0 +1,13 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <info> + <its:rules version="2.0"> + <its:preserveSpaceRule selector="//verse" space="preserve"/> + </its:rules> + </info> + <verse> + 'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </verse> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace2xml.xml new file mode 100644 index 000000000..b131356ab --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace2xml.xml @@ -0,0 +1,8 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <verse xml:space="preserve"> + 'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </verse> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xml.xml new file mode 100644 index 000000000..e16d438d6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xml.xml @@ -0,0 +1,11 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" > + <info> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="preservespace3xmlrules.xml"/> + </info> + <verse> +'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </verse> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xmlrules.xml new file mode 100644 index 000000000..8b05d415e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:preserveSpaceRule selector="//verse" space="preserve"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace4xml.xml new file mode 100644 index 000000000..a9d919dd2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace4xml.xml @@ -0,0 +1,8 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <its:span xml:space="preserve"> + 'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </its:span > +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace5xml.xml new file mode 100644 index 000000000..57b47e174 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace5xml.xml @@ -0,0 +1,14 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <info> + <its:rules version="2.0"> + <its:param name="preserverspaceParam">firstverse</its:param> + <its:preserveSpaceRule selector="//verse[@id=$preserverspaceParam]" space="preserve"/> + </its:rules> + </info> + <verse id="firstverse"> + 'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </verse> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xml.xml new file mode 100644 index 000000000..ac3cc6286 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xml.xml @@ -0,0 +1,9 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<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="preservespace6xmlrules.xml"/> + <verse id="firstverse"> + 'Twas brillig, and the slithy toves + Did gyre and gimble in the wabe; + All mimsy were the borogoves, + And the mome raths outgrabe. + </verse> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xmlrules.xml new file mode 100644 index 000000000..d626b57f2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/preservespace/xml/preservespace6xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="preserverspaceParam">firstverse</its:param> + <its:preserveSpaceRule selector="//verse[@id=$preserverspaceParam]" space="preserve"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1html.html new file mode 100644 index 000000000..3254d61dd --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1html.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + </script> + <script id="pr2" type="application/its+xml"> + <its:provenanceRecords xml:id="pr2" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + </script> + <link href=provenance1htmlrules.xml rel=its-rules> + </head> + <body> + <p class="prov-records-ref"><a href="#pr1"></a>This paragraph was translated from the machine.</p> + <p class="prov-records-ref"><a href="#pr2"></a>This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1htmlrules.xml new file mode 100644 index 000000000..5fe84aeb2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance1htmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:provRule selector="//*[@class='prov-records-ref']" provenanceRecordsRefPointer="h:a/@href"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance2html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance2html.html new file mode 100644 index 000000000..214693ff7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance2html.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + <script type="application/its+xml"> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:provRule selector="//*[@class='prov-records-ref']" provenanceRecordsRefPointer="h:a/@href"/> + </its:rules> + </script> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + </script> + <script id="pr2" type="application/its+xml"> + <its:provenanceRecords xml:id="pr2" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + personRef="http://www.provdata.com/person/#John_Doe" + orgRef="http://www.provdata.com/org/#legaltrans-ex" + revPersonRef="http://www.provdata.com/RevPerson/#Tommy_Atkins" + revOrgRef="http://www.provdata.com/RevOrg/#vistatec" + provRef="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + </script> + </head> + <body> + <p class="prov-records-ref"><a href="#pr1"></a>This paragraph was translated from the machine.</p> + <p class="prov-records-ref"><a href="#pr2"></a>This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance3html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance3html.html new file mode 100644 index 000000000..75a99a369 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance3html.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Test</title> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + toolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" + org="acme-CAT-v2.3" + revToolRef="http://www.mycat.com/v1.0/download" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + </script> + <script id="pr2" type="application/its+xml"> + <its:provenanceRecords xml:id="pr2" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + person="John Doe" + orgRef="http://www.legaltrans-ex.com/" + revPerson="Tommy Atkins" + revOrgRef="http://www.vistatec.com/" + provRef="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + </script> + </head> + <body> + <p Its-Provenance-Records-Ref="#pr1"> This paragraph was translated from the machine.</p> + <p its-provenance-records-ref="#pr2">This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance4html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance4html.html new file mode 100644 index 000000000..0f387dacc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance4html.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <title>Translation Revision Provenance Agent: Local Test in HTML5</title> + </head> + <body> + <p id="p1" + its-person-ref="http://www.provdata.com/person/#John_Doe" + its-tool-ref="http://www.onlinemtex.com/2012/7/25/wsdl/" + its-ORG="acme-CAT-v2.3" + its-rev-tool-ref="http://www.mycat.com/v1.0/download" + its-rev-org="acme-CAT-v2.3" + its-prov-ref="http://www.examplelsp.com/excontent987/production/prov/e6354"> This paragraph was translated from the machine.</p> + <p class="legal-notice" + ITS-tool="onlinemtex" + its-person="John Doe" + its-org-ref="http://www.legaltrans-ex.com/" + its-rev-person="Tommy Atkins" + its-rev-org-ref="http://www.vistatec.com/" + its-prov-ref="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469">This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5html.html new file mode 100644 index 000000000..bb2f6bf0b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5html.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + <its:provenanceRecord + revPerson="John Smith" + revOrg="Linguaserve I.S. S.A." /> + </its:provenanceRecords> + </script> + <script id="pr2" type="application/its+xml"> + <its:provenanceRecords xml:id="pr2" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + personRef="http://www.provdata.com/person/#John_Doe" + orgRef="http://www.provdata.com/org/#legaltrans-ex" + revPersonRef="http://www.provdata.com/RevPerson/#Tommy_Atkins" + revOrgRef="http://www.provdata.com/RevOrg/#vistatec" + provRef="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + </script> + <link href=provenance5htmlrules.xml rel=its-rules> + </head> + <body> + <p class="prov-records-ref1"><a href="#pr1"></a>This paragraph was translated from the machine and subsequently revised.</p> + <p class="prov-records-ref2"><a href="#pr2"></a>This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5htmlrules.xml new file mode 100644 index 000000000..de701d979 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance5htmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:param name="provenanceParam">prov-records-ref1</its:param> + <its:provRule selector="//*[@class=$provenanceParam]" provenanceRecordsRefPointer="h:a/@href"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6html.html new file mode 100644 index 000000000..a4952fc66 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + </head> + <body> + <p its-provenance-records-ref="provenance6htmlstandoff.xml#pr1">This paragraph was translated from the machine and subsequently revised.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6htmlstandoff.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6htmlstandoff.xml new file mode 100644 index 000000000..0be1638a6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance6htmlstandoff.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" ?> +<someDataFile xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> +<its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + <its:provenanceRecord + revPerson="John Smith" + revOrg="Linguaserve I.S. S.A." /> + </its:provenanceRecords> +</someDataFile> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7html.html new file mode 100644 index 000000000..7ddd66a60 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + </head> + <body> + <p its-provenance-records-ref="provenance7htmlstandoff.html#pr1">This paragraph was translated from the machine and subsequently revised.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7htmlstandoff.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7htmlstandoff.html new file mode 100644 index 000000000..04e007055 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance7htmlstandoff.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + <its:provenanceRecord + revPerson="John Smith" + revOrg="Linguaserve I.S. S.A." /> + </its:provenanceRecords> + </script> + </head> + <body> + <p id="#pr1">Here is the information of provenance.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance8html.html b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance8html.html new file mode 100644 index 000000000..a0fc83300 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/html/provenance8html.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Test</title> + <script id="pr1" type="application/its+xml"> + <its:provenanceRecords xml:id="pr1" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + </script> + <script id="pr2" type="application/its+xml"> + <its:provenanceRecords xml:id="pr2" xmlns:its="http://www.w3.org/2005/11/its"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + </script> + <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="provenanceParam">prov-records-ref1</its:param> + <its:provRule selector="//*[@class=$provenanceParam]" provenanceRecordsRefPointer="h:a/@href"/> + </its:rules> + </script> + </head> + <body> + <p class="prov-records-ref1"><a href="#pr1"></a>This paragraph was translated from the machine.</p> + <p class="prov-records-ref2"><a href="#pr2"></a>This text was translated directly by a person.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance1xml.xml new file mode 100644 index 000000000..9c154797e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance1xml.xml @@ -0,0 +1,28 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules version="2.0"> + <its:provRule selector="//*[@ref]" provenanceRecordsRefPointer="@ref"/> + </its:rules> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance2xml.xml new file mode 100644 index 000000000..c30afe8d3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance2xml.xml @@ -0,0 +1,29 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + personRef="http://www.provdata.com/person/#John_Doe" + orgRef="http://www.provdata.com/org/#legaltrans-ex" + revPersonRef="http://www.provdata.com/RevPerson/#Tommy_Atkins" + revOrgRef="http://www.provdata.com/RevOrg/#vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules version="2.0"> + <its:provRule selector="//*[@ref]" provenanceRecordsRefPointer="@ref"/> + </its:rules> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was + translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xml.xml new file mode 100644 index 000000000..a356db347 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xml.xml @@ -0,0 +1,27 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="provenance3xmlrules.xml"/> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was + translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xmlrules.xml new file mode 100644 index 000000000..30f00d3e8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance3xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:provRule selector="//*[@ref]" provenanceRecordsRefPointer="@ref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xml.xml new file mode 100644 index 000000000..dde7dbb1c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xml.xml @@ -0,0 +1,27 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + toolRef="http://www.provdata.com/tool/#onlinemtex" + revPerson="James Joyce" + revToolRef="http://www.provdata.com/RevTool/#mycat-v1" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + personRef="http://www.provdata.com/person/#John_Doe" + orgRef="http://www.provdata.com/org/#legaltrans-ex" + revPersonRef="http://www.provdata.com/RevPerson/#Tommy_Atkins" + revOrgRef="http://www.provdata.com/RevOrg/#vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="provenance4xmlrules.xml"/> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was + translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xmlrules.xml new file mode 100644 index 000000000..0b1e34ea8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance4xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:provRule selector="//*[@ref]" provenanceRecordsRefPointer="@ref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance5xml.xml new file mode 100644 index 000000000..f82e8994b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance5xml.xml @@ -0,0 +1,30 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules version="2.0"> + <its:param name="provenanceParam">#pr1</its:param> + <its:provRule selector="//*[@ref=$provenanceParam]" provenanceRecordsRefPointer="@ref"/> + </its:rules> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was + translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xml.xml new file mode 100644 index 000000000..0b5154380 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xml.xml @@ -0,0 +1,27 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <dc:creator>John Doe</dc:creator> + <its:provenanceRecords xml:id="pr1"> + <its:provenanceRecord + tool="onlinemtex" + revPerson="James Joyce" + revTool="mycat-v1.0" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/> + </its:provenanceRecords> + <its:provenanceRecords xml:id="pr2"> + <its:provenanceRecord + person="John Doe" + org="legaltrans-ex" + revPerson="Tommy Atkins" + revOrg="vistatec" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/> + </its:provenanceRecords> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="provenance6xmlrules.xml"/> + <title>Translation Revision Provenance Agent: Global Test in XML</title> + <body> + <par ref="#pr1"> This paragraph was translated from the machine.</par> + <legalnotice ref="#pr2">This text was + translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xmlrules.xml new file mode 100644 index 000000000..e7e74a831 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance6xmlrules.xml @@ -0,0 +1,4 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="provenanceParam">#pr1</its:param> + <its:provRule selector="//*[@ref=$provenanceParam]" provenanceRecordsRefPointer="@ref"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance7xml.xml new file mode 100644 index 000000000..e099e157e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance7xml.xml @@ -0,0 +1,20 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <title>Translation Revision Provenance Agent: Local Test in XML</title> + <body> + <par its:personRef="http://www.provdata.com/person/#John_Doe" + its:toolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" + its:org="acme-CAT-v2.3" + its:revToolRef="http://www.mycat.com/v1.0/download" + its:revOrg="acme-CAT-v2.3" + its:provRef="http://www.examplelsp.com/excontent987/production/prov/e6354" + >This paragraph was translated from the machine.</par> + <legalnotice its:tool="onlinemtex" + its:person="John Doe" + its:orgRef="http://www.legaltrans-ex.com/" + its:revPerson="Tommy Atkins" + its:revOrgRef="http://www.vistatec.com/" + its:provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469" + >This text was translated directly by a person.</legalnotice> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance8xml.xml new file mode 100644 index 000000000..c905730fc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/provenance/xml/provenance8xml.xml @@ -0,0 +1,20 @@ +<text xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <title>Translation Revision Provenance Agent: Local Test in XML</title> + <body> + <its:span personRef="http://www.provdata.com/person/#John_Doe" + toolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" + org="acme-CAT-v2.3" + revToolRef="http://www.mycat.com/v1.0/download" + revOrg="acme-CAT-v2.3" + provRef="http://www.examplelsp.com/excontent987/production/prov/e6354" + >This paragraph was translated from the machine.</its:span> + <its:span tool="onlinemtex" + person="John Doe" + orgRef="http://www.legaltrans-ex.com/" + revPerson="Tommy Atkins" + revOrgRef="http://www.vistatec.com/" + provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469" + >This text was translated directly by a person.</its:span> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html new file mode 100644 index 000000000..fb7017376 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Storage Size</title> + </head> + <body> + <p>String to translate:</p> + <p contenteditable="true" id="123" its-storage-size="25" its-storage-encoding="ISO-8859-1" its-line-break-type="LF">Papua New-Guinea</p> + <p contenteditable="true" id="139" its-storage-size="25" its-storage-encoding="ISO-8859-1" its-line-break-type="lF">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html new file mode 100644 index 000000000..0e1a720d9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Storage Size</title> + <link href="storagesize2htmlrules.xml" rel="its-rules"/> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.xml new file mode 100644 index 000000000..93d0bfa61 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.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:storageSizeRule selector="//h:p" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html new file mode 100644 index 000000000..4cc8f4256 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Storage Size</title> + <link href="storagesize3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.xml new file mode 100644 index 000000000..4e8b23d3d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.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="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//h:p[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html new file mode 100644 index 000000000..4ec272a4d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <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="storagesizePapParam">123</its:param> + <its:param name="storagesizeDomParam">139</its:param> + <its:storageSizeRule selector="//h:p[@id=$storagesizePapParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + <its:storageSizeRule selector="//h:p[@id=$storagesizeDomParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Storage Size</title> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml new file mode 100644 index 000000000..c003af2ce --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml @@ -0,0 +1,10 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//country" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml new file mode 100644 index 000000000..343b4b4a9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml @@ -0,0 +1,8 @@ +<fields> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//field" storageSizePointer="@max" storageEncodingPointer="@encoding"/> + </its:rules> + <field type="country" id="123" max="25" encoding="ISO-8859-1">Papouasie-Nouvelle-Guinée</field> + <field type="country" id="139" max="25" encoding="ISO-8859-1">République Dominicaine</field> +</fields> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml new file mode 100644 index 000000000..02b07d946 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml @@ -0,0 +1,8 @@ +<db> + <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="storagesize3xmlrules.xml"/> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml new file mode 100644 index 000000000..081351102 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//country" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml new file mode 100644 index 000000000..a48879007 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml @@ -0,0 +1,6 @@ +<fields> + <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="storagesize4xmlrules.xml"/> + <field type="country" id="123" max="25" encoding="ISO-8859-1">Papouasie-Nouvelle-Guinée</field> + <field type="country" id="139" max="25" encoding="ISO-8859-1">République Dominicaine</field> +</fields> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml new file mode 100644 index 000000000..50be2ad80 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//field" storageSizePointer="@max" storageEncodingPointer="@encoding"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml new file mode 100644 index 000000000..cf7ff6103 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <var num="panelA1_Continue" its:storageSize="8" its:storageEncoding="UTF-16">CONTINUE</var> + <var num="panelA1_Stop" its:storageSize="8" its:storageEncoding="UTF-16">STOP</var> + <var num="panelB5_Cancel" its:storageSize="12" its:storageEncoding="UTF-16">CANCEL</var> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml new file mode 100644 index 000000000..21cfbae15 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <var num="panelA1_Continue" its:storageSize="8" its:storageEncoding="UTF-16" its:lineBreakType="lf">CONTINUE</var> + <var num="panelA1_Stop" its:storageSize="8" its:storageEncoding="UTF-16" its:lineBreakType="lf">STOP</var> + <var num="panelB5_Cancel" its:storageSize="12" its:storageEncoding="UTF-16" its:lineBreakType="lf">CANCEL</var> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml new file mode 100644 index 000000000..d090b0da6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml @@ -0,0 +1,8 @@ +<db> + <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="storagesize7xmlrules.xml"/> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml new file mode 100644 index 000000000..8df636ef7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//country[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml new file mode 100644 index 000000000..8044869de --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml @@ -0,0 +1,11 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//country[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml new file mode 100644 index 000000000..e464ed6d0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <its:span storageSize="8" storageEncoding="UTF-16" lineBreakType="lf">CONTINUE</its:span> + <its:span storageSize="8" storageEncoding="UTF-16" lineBreakType="lf">STOP</its:span> + <its:span storageSize="12" storageEncoding="UTF-16" lineBreakType="lf">CANCEL</its:span> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html new file mode 100644 index 000000000..bca5036b4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Target Pointer</title> + <link href="targetpointer1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="one"> + <p class="srcfolder">Remember last folder</p> + <p class="targetfolder">lastFolder</p> + </div> + <div id="two"> + <p class="srcfile">Custom file filter:</p> + <p class="targetfile">testFile.txt</p> + </div> + </body> +</html> + + + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml new file mode 100644 index 000000000..93318581b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml @@ -0,0 +1,4 @@ + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class='targetfolder']"/> + <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class='targetfile']"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html new file mode 100644 index 000000000..bbcbc52eb --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Target Pointer</title> + <link href="targetpointer2htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="one"> + <p class="srcfolder">Remember last folder</p> + <p class="targetfolder">lastFolder</p> + </div> + <div id="two"> + <p class="srcfile">Custom file filter:</p> + <p class="targetfile">testFile.txt</p> + </div> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml new file mode 100644 index 000000000..b26379aaf --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml @@ -0,0 +1,8 @@ + <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="targetFolder">targetfolder</its:param> + <its:param name="targetFile">targetfile</its:param> + <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class=$targetFolder]"/> + <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class=$targetFile]"/> + </its:rules> + + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html new file mode 100644 index 000000000..301911b2a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html @@ -0,0 +1,24 @@ +<!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="targetFolder">targetfolder</its:param> + <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class=$targetFolder]"/> + <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class='targetfile']"/> + </its:rules> +</script> + <meta charset="utf-8"/> + <title>Target Pointer</title> + </head> + <body> + <div id="one"> + <p class="srcfolder">Remember last folder</p> + <p class="targetfolder">lastFolder</p> + </div> + <div id="two"> + <p class="srcfile">Custom file filter:</p> + <p class="targetfile">testFile.txt</p> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer1xml.xml new file mode 100644 index 000000000..0c32dc293 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer1xml.xml @@ -0,0 +1,14 @@ +<file + xmlns:its="http://www.w3.org/2005/11/its" > + <its:rules version="2.0"> + <its:targetPointerRule selector="//source" targetPointer="../target"/> + </its:rules> + <entry id="one"> + <source>Remember last folder</source> + <target>lastFolder</target> + </entry> + <entry id="two"> + <source>Custom file filter:</source> + <target>testFile.txt</target> + </entry> +</file> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xml.xml new file mode 100644 index 000000000..91350392d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xml.xml @@ -0,0 +1,12 @@ +<file + xmlns:its="http://www.w3.org/2005/11/its" > + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="targetpointer2xmlrules.xml"/> + <entry id="one"> + <source>Remember last folder</source> + <target>lastFolder</target> + </entry> + <entry id="two"> + <source>Custom file filter:</source> + <target>testFile.txt</target> + </entry> +</file> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xmlrules.xml new file mode 100644 index 000000000..b8fc4ed9a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer2xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:targetPointerRule selector="//source" targetPointer="../target"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer3xml.xml new file mode 100644 index 000000000..2af95ca8b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer3xml.xml @@ -0,0 +1,17 @@ +<file + xmlns:its="http://www.w3.org/2005/11/its" > + <its:rules version="2.0"> + <its:param name="targetOneParam">firstfolder</its:param> + <its:param name="targetTwoParam">firstfile</its:param> + <its:targetPointerRule selector="//entry[@id='one']/source" targetPointer="../target[@id=$targetOneParam]"/> + <its:targetPointerRule selector="//entry[@id='two']/source" targetPointer="../target[@id=$targetTwoParam]"/> + </its:rules> + <entry id="one"> + <source>Remember last folders</source> + <target id="firstfolder">firstFolder</target> + </entry> + <entry id="two"> + <source>Custom file filter:</source> + <target id="firstfile">firstFile.txt</target> + </entry> +</file> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xml.xml new file mode 100644 index 000000000..8f818262d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xml.xml @@ -0,0 +1,11 @@ +<file> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="targetpointer4xmlrules.xml"/> + <entry id="one"> + <source>Remember last folders</source> + <target id="firstfolder">firstFolder</target> + </entry> + <entry id="two"> + <source>Custom file filter:</source> + <target id="firstfile">firstFile.txt</target> + </entry> +</file> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xmlrules.xml new file mode 100644 index 000000000..0ed1d81ce --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/xml/targetpointer4xmlrules.xml @@ -0,0 +1,6 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="targetOneParam">firstfolder</its:param> + <its:param name="targetTwoParam">firstfile</its:param> + <its:targetPointerRule selector="//entry[@id='one']/source" targetPointer="../target[@id=$targetOneParam]"/> + <its:targetPointerRule selector="//entry[@id='two']/source" targetPointer="../target[@id=$targetTwoParam]"/> + </its:rules> 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 000000000..0636d3f26 --- /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 000000000..0326b23d4 --- /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 000000000..a64eb18ef --- /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 000000000..2e4eea326 --- /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 000000000..4274b3f70 --- /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 000000000..b84e5af63 --- /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 000000000..d405064de --- /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 000000000..c0ce5e2dc --- /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 000000000..d35fd0b0e --- /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> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml new file mode 100644 index 000000000..55273b10b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology1xml.xml @@ -0,0 +1,11 @@ +<text + xmlns:its="http://www.w3.org/2005/11/its" > + <its:rules version="2.0"> + <its:termRule selector="//term" term="yes" termInfoPointer="id(@def)"/> + </its:rules> + <p>We may define <term def="TDPV">discoursal point of view</term> + as <gloss xml:id="TDPV">the relationship, expressed through discourse + structure, between the implied author or some other addresser, + and the fiction.</gloss> + </p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml new file mode 100644 index 000000000..33d794a6e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology2xml.xml @@ -0,0 +1,9 @@ +<text> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:termRule selector="//term[1]" term="yes" termInfoRef="#TDPV"/> + </its:rules> + <p>We may define <term>discoursal point of view</term> +as <gloss xml:id="TDPV">the relationship, expressed through discourse +structure, between the implied author or some other addresser, +and the fiction.</gloss></p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml new file mode 100644 index 000000000..3d913c81e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology3xml.xml @@ -0,0 +1,10 @@ +<text> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:termRule selector="//term" term="yes" + termInfoRefPointer="@target"/> + </its:rules> + <p>We may define <term target="#TDPV">discoursal point of view</term> +as <gloss xml:id="TDPV">the relationship, expressed through discourse +structure, between the implied author or some other addresser, +and the fiction.</gloss></p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml new file mode 100644 index 000000000..33d122b29 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xml.xml @@ -0,0 +1,19 @@ +<text> + <head> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" + xmlns:xlink="http://www.w3.org/1999/xlink" + xlink:href="terminology4xmlrules.xml"> + <its:termRule selector="//p[2]/term" term="yes" + termInfoPointer="../gloss"/> + <its:termRule selector="//p[3]/term" term="no"/> + </its:rules> + <keywords><kw>terms</kw>, <kw>rare <kw>words</kw></kw></keywords> + </head> + <p>We may define <term>discoursal point of view</term> +as <def>the relationship, expressed through discourse +structure, between the implied author or some other addresser, +and the fiction</def>.</p> + <p>We may define <term>refulgence</term> +as <gloss id="refdef">a radiant or resplendent quality or state.</gloss></p> + <p>But I'm not sure how <term>quincunx</term> can be defined.</p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml new file mode 100644 index 000000000..7946cee28 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology4xmlrules.xml @@ -0,0 +1,5 @@ +<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:termRule selector="//term" term="yes" + termInfoPointer="../def"/> + <its:termRule selector="//kw" term="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml new file mode 100644 index 000000000..3ff4c769b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology5xml.xml @@ -0,0 +1,7 @@ +<doc its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <section xml:id="S001"> + <par>A <kw its:term="yes" its:termInfoRef="http://en.wikipedia.org/wiki/Motherboard">motherboard</kw>, + also known as a <kw its:term="yes">logic <span its:term="yes">board</span></kw> on Apple Computers, + is the primary circuit board making up a modern computer.</par> + </section> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml new file mode 100644 index 000000000..52bd0ecd4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology6xml.xml @@ -0,0 +1,7 @@ +<doc its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <section xml:id="S001"> + <par>A <its:span term="yes" termInfoRef="http://en.wikipedia.org/wiki/Motherboard">motherboard</its:span>, + also known as a <its:span term="yes">logic <its:span term="yes">board</its:span></its:span> on Apple Computers, + is the primary circuit board making up a modern computer.</par> + </section> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml new file mode 100644 index 000000000..440004956 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology7xml.xml @@ -0,0 +1,17 @@ +<text> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="termInfoRefPointer">2</its:param> +<its:termRule selector="//p[@id=$termInfoRefPointer]/term" term="yes" termInfoRefPointer="@target"/> +</its:rules> +<p id="1"> +This is a glossary of terms. +</p> +<p id="2"> +We may define +<term target="#TDPV">discoursal point of view</term> +as +<gloss xml:id="TDPV"> +the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction. +</gloss> +</p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml new file mode 100644 index 000000000..b53f73093 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xml.xml @@ -0,0 +1,14 @@ +<text> +<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="terminology8xmlrules.xml"/> +<p id="1"> +This is a glossary of terms. +</p> +<p id="2"> +We may define +<term target="#TDPV">discoursal point of view</term> +as +<gloss xml:id="TDPV"> +the relationship, expressed through discourse structure, between the implied author or some other addresser, and the fiction. +</gloss> +</p> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml new file mode 100644 index 000000000..26501b63b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology8xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="termInfoRefPointer">2</its:param> +<its:termRule selector="//p[@id=$termInfoRefPointer]/term" term="yes" termInfoRefPointer="@target"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml new file mode 100644 index 000000000..bf74f2669 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/terminology/xml/terminology9xml.xml @@ -0,0 +1,6 @@ +<book its:version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <head>Sample file</head> + <body its:annotatorsRef="text-analysis|file:///tools.xml#T1"> + <p>And he said: you need a new <quote its:annotatorsRef="terminology|http://example.com/term-tool#T2" its:term="yes" its:termInfoRef="http://www.directron.com/motherboards1.html" its:termConfidence="0.5">motherboard</quote></p> + </body> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html new file mode 100644 index 000000000..320282183 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <link href="textanalysis1htmlrules.xml" rel="its-rules"/> + <title>Text Analysis: Local Test</title> + </head> + <body> + <p> + <span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml new file mode 100644 index 000000000..c6245b71e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis1htmlrules.xml @@ -0,0 +1,9 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='dublin']" + taClassRefPointer="@typeof" + taIdentRefPointer="@property"/> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='capital']" + taClassRefPointer="@typeof" + taSourcePointer="@property" + taIdentPointer="@about"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html new file mode 100644 index 000000000..39c45f9cc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <link href="textanalysis2htmlrules.xml" rel="its-rules"/> + <title>Text Analysis: Local Test</title> + </head> + <body> + <p> + <span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml new file mode 100644 index 000000000..c5601a9ed --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis2htmlrules.xml @@ -0,0 +1,11 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:param name="taCityParam">dublin</its:param> + <its:param name="taCapitalParam">capital</its:param> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCityParam]" + taClassRefPointer="@typeof" + taIdentRefPointer="@property"/> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCapitalParam]" + taClassRefPointer="@typeof" + taSourcePointer="@property" + taIdentPointer="@about"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html new file mode 100644 index 000000000..bf5e46657 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3html.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <link href="textanalysis3htmlrules.xml" rel=its-rules> + <title>Text Analysis: Local Test</title> + </head> + <body> + <p><span id="dublin" property="http://xmlns.com/foaf/0.1/name" + about="http://dbpedia.org/resource/Dublin" + typeof="http://nerd.eurecom.fr/ontology#Location">Dublin</span> is + the <span id="capital">capital</span> of Ireland.</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml new file mode 100644 index 000000000..d88271f30 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis3htmlrules.xml @@ -0,0 +1,5 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id='dublin']" + taClassRefPointer="@typeof" + taIdentRefPointer="@about"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html new file mode 100644 index 000000000..42ff1d37b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis4html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en" its-annotators-ref="text-analysis|http://enrycher.ijs.si"> + <head> + <meta charset=utf-8> + <title>Text Analysis: Local Test</title> + </head> + <body> + <p><span + its-ta-confidence="0.7" + its-ta-class-ref="http://nerd.eurecom.fr/ontology#Location" + its-ta-ident-ref="http://dbpedia.org/resource/Dublin" + >Dublin</span> + is the <span + its-ta-source="Wordnet3.0" + its-ta-ident="301467919" + its-ta-confidence="0.5" + >capital</span> of Ireland.</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html new file mode 100644 index 000000000..8f673df4c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/html/textanalysis5html.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <script type="application/its+xml"> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:h="http://www.w3.org/1999/xhtml"> + <its:param name="taCityParam">dublin</its:param> + <its:param name="taCapitalParam">capital</its:param> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCityParam]" + taClassRefPointer="@typeof" + taIdentRefPointer="@property"/> + <its:textAnalysisRule selector="//h:body/h:p/h:*[@id=$taCapitalParam]" + taClassRefPointer="@typeof" + taSourcePointer="@property" + taIdentPointer="@about"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Textanalysis: Local Test</title> + </head> + <body> + <p><span id="dublin" typeof="http://nerd.eurecom.fr/ontology#Location" property="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" typeof="http://nerd.eurecom.fr/ontology#City" about="301467919" property="Wordnet3.0">capital</span> of Ireland.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml new file mode 100644 index 000000000..0aa9803ac --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis1xml.xml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<text> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taClassRefPointer="@classref" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml new file mode 100644 index 000000000..74ffc8119 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xml.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<text> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis2xmlrules.xml"/> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml new file mode 100644 index 000000000..eb25afba0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis2xmlrules.xml @@ -0,0 +1,9 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taClassRefPointer="@classref" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml new file mode 100644 index 000000000..108061ce8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis3xml.xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<text> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="taCityParam">dublin</its:param> + <its:param name="taCapitalParam">capital</its:param> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taClassRefPointer="@classref" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml new file mode 100644 index 000000000..e90c6c33f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xml.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<text> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis4xmlrules.xml"/> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" id="dublin" identref="http://dbpedia.org/resource/Dublin">Dublin</span> is the <span id="capital" classref="http://nerd.eurecom.fr/ontology#City" source="Wordnet3.0" ident="301467919">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml new file mode 100644 index 000000000..1a437e6cd --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis4xmlrules.xml @@ -0,0 +1,11 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="taCityParam">dublin</its:param> + <its:param name="taCapitalParam">capital</its:param> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taClassRefPointer="@classref" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml new file mode 100644 index 000000000..b570404cb --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis5xml.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" its:annotatorsRef="text-analysis|http://enrycher.ijs.si"> + <body> + <p><span its:taClassRef="http://nerd.eurecom.fr/ontology#Location" its:taIdentRef="http://dbpedia.org/resource/Dublin" its:taConfidence="0.7">Dublin</span> is the <span its:taSource="Wordnet3.0" its:taIdent="301467919" its:taConfidence="0.5">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml new file mode 100644 index 000000000..1ffc65169 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis6xml.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" its:annotatorsRef="text-analysis|http://enrycher.ijs.si"> + <body> + <p><its:span taClassRef="http://nerd.eurecom.fr/ontology#Location" taIdentRef="http://dbpedia.org/resource/Dublin" taConfidence="0.7" +>Dublin</its:span> is the <its:span taSource="Wordnet3.0" taIdent="301467919" taConfidence="0.5">capital</its:span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml new file mode 100644 index 000000000..f69754392 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis7xml.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<text> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" identref="http://dbpedia.org/resource/Dublin" id="dublin">Dublin</span> is the <span source="Wordnet3.0" ident="301467919" id="capital">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml new file mode 100644 index 000000000..563d4fac0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xml.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<text> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="textanalysis8xmlrules.xml"/> + <body> + <p><span classref="http://nerd.eurecom.fr/ontology#Location" identref="http://dbpedia.org/resource/Dublin" id="dublin">Dublin</span> is the <span source="Wordnet3.0" ident="301467919" id="capital">capital</span> of Ireland.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml new file mode 100644 index 000000000..05894fcaa --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/textanalysis/xml/textanalysis8xmlrules.xml @@ -0,0 +1,8 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:textAnalysisRule selector="/text/body/p/*[@id='dublin']" + taClassRefPointer="@classref" + taIdentRefPointer="@identref"/> + <its:textAnalysisRule selector="/text/body/p/*[@id='capital']" + taSourcePointer="@source" + taIdentPointer="@ident"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html new file mode 100644 index 000000000..e31fcae0f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>HTML Link Example</title> + <link href="translate1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <img src="smiley.gif" alt="Smiley face" width="42" height="42"/> + <p id="100" title="Text"> + This is the first paragraph. It has some + <code>un-translatable code</code> + . + </p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.xml new file mode 100644 index 000000000..bd51763af --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.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:translateRule selector="//h:code" translate="no"/> + <its:translateRule selector="//h:link" translate="no"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html new file mode 100644 index 000000000..576eaea3a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> + <html lang="en"> + <head> + <meta charset=utf-8> + <title>The Life of a Simple Man</title> + </head> + <body> + <p> + <img src="smiley.gif" alt="Smiley face" width="42" height="42"/> + Everything started when Zebulon discovered that he had a + <span translate="NO">doppelgänger</span> + who was a serious baseball + <span translate="nO">aficionado</span> + . + </p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html new file mode 100644 index 000000000..a88bd1ac6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="translate3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span translate="yes">The Life of a Simple Man</span> + <!-- + Note that the contents of <b> and <span> should end up *not* translatable with these settings + --> + <section title="section one"> + <h2>section one</h2> + <p> + Everything started when Zebulon discovered that he had a + <span>doppelgänger</span> + who was a serious baseball + <span>aficionado</span> + . + </p> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.xml new file mode 100644 index 000000000..6193ec01d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.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:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html new file mode 100644 index 000000000..a2a4d9585 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="translate4htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span translate="yes">The Life of a Simple Man</span> + <!-- + Note that the contents of <b> and <span> should end up *not* translatable with these settings + --> + <section> + <h2>section</h2> + <p> + Everything started when Zebulon discovered that he had a + <span>doppelgänger</span> + who was a serious baseball + <span>aficionado</span> + . + </p> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.xml new file mode 100644 index 000000000..c252a2de8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.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:translateRule selector="/h:html" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html new file mode 100644 index 000000000..c64c0cd50 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>The ITS Topic</title> + <link href="translate5htmlrules.xml" rel="its-rules"/> + </head> + <body> + <section> + <h2>Data category</h2> + <span id="tDataCat"> + <b>Data category</b> + <cite> + ITS defines + <i>data category</i> + as an abstract concept for a particular type of information for internationalization and localization of XML schemas and documents. + </cite> + </span> + </section> + <p> + For the implementation of ITS, apply the rules in the order: + </p> + <ul> + <li>Default</li> + <li>Rules in the schema</li> + <li>Rules in the document instance</li> + <li>Local attributes</li> + </ul> + <p> + <span lang="fr">Et voila !</span> + The last rule wins. + </p> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.xml new file mode 100644 index 000000000..6193ec01d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.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:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html new file mode 100644 index 000000000..82cc62c98 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>The ITS Topic</title> + <link href="translate6htmlrules.xml" rel="its-rules"/> + </head> + <body> + <section> + <h2>Data category</h2> + <span id="tDataCat"> + <b>Data category</b> + <cite> + ITS defines + <i>data category</i> + as an abstract concept for a particular type of information for internationalization and localization of XML schemas and documents. + </cite> + </span> + </section> + <p> + For the implementation of ITS, apply the rules in the order: + </p> + <ul> + <li>Default</li> + <li>Rules in the schema</li> + <li>Rules in the document instance</li> + <li>Local attributes</li> + </ul> + <p> + <span lang="fr">Et voila !</span> + The last rule wins. + </p> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.xml new file mode 100644 index 000000000..dadbad167 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.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:param name="tDataCatParam">tDataCat</its:param> +<its:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +<its:translateRule selector="//h:span[@id=$tDataCatParam]" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html new file mode 100644 index 000000000..c17322df8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html lang=en> + <head> +<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="translateparam">name</its:param> + <its:translateRule selector="//h:*[@id=$translateparam]" translate="no"/> + </its:rules> +</script> + <meta charset="utf-8"/> + <title>Example</title> + </head> + <body title="login details"> +<p style="color:green">Login names can only use letters from A to Z (upper or lowercase) + For example: <code id="name">Huck_Finn</code>.</p> + </body> +</html> + + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xml.xml new file mode 100644 index 000000000..0559c51c9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xml.xml @@ -0,0 +1,7 @@ +<doc> + <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="translate10xmlrules.xml"/> + <msg lcid="409" num="1">Create a folder</msg> + <msg lcid="411" num="1">フォルダーを作成する</msg> + <msg lcid="407" num="1">Erstellen Sie einen Ordner</msg> + <msg lcid="408" num="1">Créer un dossier</msg> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xmlrules.xml new file mode 100644 index 000000000..5b32c6905 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xmlrules.xml @@ -0,0 +1,5 @@ + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:param name="LCID">409</its:param> + <its:translateRule selector="/doc" translate="no"/> + <its:translateRule selector="//msg[@lcid=$LCID]" translate="yes"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate1xml.xml new file mode 100644 index 000000000..5649d70af --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate1xml.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<myMetaDoc + xmlns:cml="myChineseMakupLanguage"> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//img/@alt" translate="yes"/> + <its:translateRule selector="//*/@title" translate="yes"/> + <its:translateRule selector="//verbatim" translate="no"/> + <its:translateRule selector="//verbatim/@*" translate="no"/> + <its:translateRule selector="//verbatim//*/@*" translate="no"/> + <its:withinTextRule selector="//img|//verbatim" withinText="yes"/> + </its:rules> + </head> + <body> + <par>Text with an image: <img alt="Image description" src="img.png"/>.</par> + <par id="100" title="Text">This is the first paragraph. It has some <verbatim>un-translatable + code with an image: <img src="test.png" alt="Image description"/></verbatim>.</par> + <insert xmlns:z="myChineseMakupLanguage" xmlns:i="http://www.w3.org/2005/11/its"> + <z:书籍> + <z:封面> + <z:汇集>The Lord of the Rings</z:汇集> + <z:标题>The Return of the King</z:标题> + <z:作者>J.R.R. Tolkein</z:作者> + </z:封面> + <z:章节 数="1"> + <z:头注>Minas Tirith</z:头注> + <z:段落识别 id="A34B"><z:姓名>Pippin</z:姓名> looked out from the shelter of <z:姓名>Gandalf</z:姓名>'s cloak.</z:段落识别> + </z:章节> + <z:躯> + <i:rules version="2.0" xmlns:cml="myChineseMakupLanguage"> + <i:translateRule selector="//cml:作者" translate="no"/> + <i:translateRule selector="//cml:姓名" translate="no"/> + <i:withinTextRule selector="//cml:姓名" withinText="yes"/> + </i:rules> + </z:躯> + </z:书籍> + </insert> + </body> +</myMetaDoc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xml.xml new file mode 100644 index 000000000..68bfd3f28 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xml.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<myDoc> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="translate2xmlrules.xml"/> + </head> + <body> + <par id="100" title="Text">This is the first paragraph. It has some <code>un-translatable code</code>.</par> + </body> +</myDoc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xmlrules.xml new file mode 100644 index 000000000..69de855fc --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xmlrules.xml @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//code" translate="no"/> + <its:translateRule selector="//*/@title" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xml.xml new file mode 100644 index 000000000..fcccc6984 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xml.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<myDoc> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="translate3xmlrules.xml"> + <its:translateRule selector="//par[@id='101']/@title" translate="no"/> + </its:rules> + </head> + <body> + <par id="100" title="Text">This is the first paragraph. It has some <code>un-translatable code</code>.</par> + <par id="101" title="Not extractable text">Some additional text.</par> + </body> +</myDoc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xmlrules.xml new file mode 100644 index 000000000..0a45c9755 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xmlrules.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//head" translate="no"/> + <its:translateRule selector="//code" translate="no"/> + <its:translateRule selector="//*/@title" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate4xml.xml new file mode 100644 index 000000000..bc1ee7d64 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate4xml.xml @@ -0,0 +1,11 @@ +<book xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <head> + <title>The Life of a Simple Man</title> + </head> + <body> + <img src="smiley.gif" alt="Smiley face" width="42" height="42"/> + <p>Everything started when Zebulon discovered that he had + a <fexp its:translate="no">doppelgänger</fexp> who was a + serious baseball <fexp its:translate="no">aficionado</fexp>.</p> + </body> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate5xml.xml new file mode 100644 index 000000000..9dceba576 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate5xml.xml @@ -0,0 +1,13 @@ +<book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="EX-ways-to-use-its-5.xsd" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> + <head> + <title>The Life of a Simple Man</title> + </head> + <body> + <p>Everything started when Zebulon discovered that he had + a <its:span translate="no">doppelgänger</its:span> who was a + serious baseball <its:span translate="no">aficionado</its:span>.</p> + </body> +</book> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate6xml.xml new file mode 100644 index 000000000..28bbea14d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate6xml.xml @@ -0,0 +1,19 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <head> + <its:rules version="2.0"> + <its:translateRule selector="//*" translate="no"/> + <its:translateRule selector="//p" translate="yes"/> + </its:rules> + </head> + <info> + <item type="title" its:translate="yes">The Life of a <b>Simple Man</b></item> + <!-- Note that the contents of <b> and <span> should end up + *not* translatable with these settings --> + <item type="date-main">Dec-05-2006</item> + </info> + <content> + <p>Everything started when Zebulon discovered that he had + a <span>doppelgänger</span> who was a + serious baseball <span>aficionado</span>.</p> + </content> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate7xml.xml new file mode 100644 index 000000000..20e9ea70b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate7xml.xml @@ -0,0 +1,19 @@ +<doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <head> + <its:rules version="2.0"> + <its:translateRule selector="/doc" translate="no"/> + <its:translateRule selector="//p" translate="yes"/> + </its:rules> + </head> + <info> + <item type="title" its:translate="yes">The Life of a <b>Simple Man</b></item> + <!-- Note that the contents of <b> and <span> should end up + translatable with these settings --> + <item type="date-main">Dec-05-2006</item> + </info> + <content> + <p>Everything started when Zebulon discovered that he had + a <span>doppelgänger</span> who was a + serious baseball <span>aficionado</span>.</p> + </content> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate8xml.xml new file mode 100644 index 000000000..4692cdb08 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate8xml.xml @@ -0,0 +1,28 @@ +<topic id="myTopic"> + <title>The ITS Topic</title> + <prolog> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//*" translate="no"/> + <its:translateRule selector="//p" translate="yes"/> + <!-- With these rules only the text "For the implementation of ITS, apply the rules in the order:" + and " The last rule wins." should end up translatable --> + </its:rules> + </prolog> + <body> + <dl> + <dlentry id="tDataCat"> + <dt>Data category</dt> + <dd>ITS defines <term>data category</term> as an abstract concept for a particular + type of information for internationalization and localization of XML schemas and documents.</dd> + </dlentry> + </dl> + <p>For the implementation of ITS, apply the rules in the order:</p> + <ul> + <li>Default</li> + <li>Rules in the schema</li> + <li>Rules in the document instance</li> + <li>Local attributes</li> + </ul> + <p><ph xml:lang="fr">Et voilà !</ph> The last rule wins.</p> + </body> +</topic> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate9xml.xml new file mode 100644 index 000000000..f8606b68f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate9xml.xml @@ -0,0 +1,11 @@ +<doc> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="LCID">409</its:param> + <its:translateRule selector="/doc" translate="no"/> + <its:translateRule selector="//msg[@lcid=$LCID]" translate="yes"/> + </its:rules> + <msg lcid="409" num="1">Create a folder</msg> + <msg lcid="411" num="1">フォルダーを作成する</msg> + <msg lcid="407" num="1">Erstellen Sie einen Ordner</msg> + <msg lcid="40c" num="1">Créer un dossier</msg> +</doc> |