summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/translate/xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/conformance-checkers/html-its/translate/xml
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/translate/xml')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate10xmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate1xml.xml39
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xml.xml10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate2xmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xml.xml13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate3xmlrules.xml6
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate4xml.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate5xml.xml13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate6xml.xml19
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate7xml.xml19
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate8xml.xml28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/translate/xml/translate9xml.xml11
13 files changed, 186 insertions, 0 deletions
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 0000000000..0559c51c95
--- /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 0000000000..5b32c69059
--- /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 0000000000..5649d70af4
--- /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 0000000000..68bfd3f28a
--- /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 0000000000..69de855fc3
--- /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 0000000000..fcccc69841
--- /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 0000000000..0a45c97553
--- /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 0000000000..bc1ee7d64f
--- /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 0000000000..9dceba576a
--- /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 0000000000..28bbea14d9
--- /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 0000000000..20e9ea70b3
--- /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 0000000000..4692cdb087
--- /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 0000000000..f8606b68ff
--- /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>