mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -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>
|
||||
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
@ -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>
|
|
@ -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>
|
||||
|
||||
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue