diff options
Diffstat (limited to 'tests/ITS-2.0-Testsuite/inputdata/translate/xml')
13 files changed, 186 insertions, 186 deletions
diff --git a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xml.xml index 8051a13..0559c51 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xml.xml @@ -1,7 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xmlrules.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xmlrules.xml index 3202fda..5b32c69 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xmlrules.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate10xmlrules.xml @@ -1,5 +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>
+ <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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate1xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate1xml.xml index 997f252..5649d70 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate1xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate1xml.xml @@ -1,39 +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>
+<?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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xml.xml index 46a48b6..68bfd3f 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xml.xml @@ -1,10 +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>
+<?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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xmlrules.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xmlrules.xml index e594bb3..69de855 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xmlrules.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate2xmlrules.xml @@ -1,5 +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>
+<?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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xml.xml index 8bfcc66..fcccc69 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xml.xml @@ -1,13 +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>
+<?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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xmlrules.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xmlrules.xml index 9794dba..0a45c97 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xmlrules.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate3xmlrules.xml @@ -1,6 +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>
+<?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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate4xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate4xml.xml index 336951c..ac26ccc 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate4xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate4xml.xml @@ -1,11 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate5xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate5xml.xml index 23d437d..19acae2 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate5xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate5xml.xml @@ -1,13 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate6xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate6xml.xml index ecec0ba..28bbea1 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate6xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate6xml.xml @@ -1,19 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate7xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate7xml.xml index 751d7b7..20e9ea7 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate7xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate7xml.xml @@ -1,19 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate8xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate8xml.xml index c879286..78f6cd5 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate8xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate8xml.xml @@ -1,28 +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>
+<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/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate9xml.xml b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate9xml.xml index 1c1fe1d..f8606b6 100644 --- a/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate9xml.xml +++ b/tests/ITS-2.0-Testsuite/inputdata/translate/xml/translate9xml.xml @@ -1,11 +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>
+<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> |