adding counter element to xslt

Hi there,

I have tried many times to make my result document to have a counter element like the following:

   <translation initial="A">
      <search>Ab Urbe condita</search>
      <counter>1</counter> <--- counter is 1 because there is only one replace element
      <replace>Ab Urbe condita libri</replace>
   </translation>
   <translation initial="A">
      <search>Abel</search>
      <counter>2</counter> <----- counter is 2 because there are two replaces elements
      <replace>Abel</replace>
      <replace>Caín</replace>
   </translation>

IF you look at the source document, you will see the word (Ab Urbe condita) has only one replace element in one block so the counter is 1. As for the word (Abel), it has two replaces in two different element blocks so the counter is 2...

So, can any one help me how to do the counter element? please have a look at the source document and the xslt

Cheers,

-------- xslt
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
    <xsl:output method="xml" version="1.0" indent="yes"/>
    <xsl:template match="wordlist">
        <Dictionary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="translation.xsd">
            <from><xsl:value-of select="@from" /></from>
            <to><xsl:value-of select="@to" /></to>
            <xsl:for-each select="wordEntry">
            	<translation initial="{substring(search ,1,1)}">
            		<xsl:copy-of select="*"/>
            	</translation>
            </xsl:for-each>
        </Dictionary>
    </xsl:template>
</xsl:stylesheet>


------- source document

<?xml version="1.0" encoding="UTF-8"?>
<wordlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="wordlist.xsd"
            from="en"
            to="es">
			

   <wordEntry>
      <search>Ab Urbe condita</search>
      <replace>Ab Urbe condita libri</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Abel</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Caín</replace>
   </wordEntry>
   			
</wordlist>

Open in new window

AussieSilverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Geert BormansInformation ArchitectCommented:
                 <translation initial="{substring(search ,1,1)}">
                        <xsl:copy-of select="*"/>
                  </translation>
should be
                  <translation initial="{substring(search ,1,1)}">
                        <xsl:copy-of select="*"/>
                                <count><xsl:value-of select="count(replace)"/></count>
                  </translation>
0
Geert BormansInformation ArchitectCommented:
In case you want the counter in the middle...

I have restructured your XSLT a bit,
In my mind, this now has a better style of XSLT development.
Not too much deep copying with copy-of and no unnecessary for-each
The last template is an identity copy, it copies all elements that don't have a template of their own.
This really is more true to the nature of XSLT programming
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
    <xsl:output method="xml" version="1.0" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <xsl:template match="wordlist">
        <Dictionary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="translation.xsd">
            <from><xsl:value-of select="@from" /></from>
            <to><xsl:value-of select="@to" /></to>
            <xsl:apply-templates select="wordEntry"/>
        </Dictionary>
    </xsl:template>
    <xsl:template match="wordEntry">
        <translation initial="{substring(search ,1,1)}">
            <xsl:apply-templates select="node()"/>
        </translation>
    </xsl:template>
    <xsl:template match="search">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:apply-templates select="node()"/>
        </xsl:copy>
        <counter>
            <xsl:value-of select="count(../replace)"/>
        </counter>
    </xsl:template>
    <xsl:template match="node()">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:apply-templates select="node()"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

Open in new window

0
AussieSilverAuthor Commented:
Hi,

Regarding your first reply., the output is

   <translation initial="A">
      <search>Abel</search>
      <replace>Abel</replace>
      <count>1</count>
   </translation>
   <translation initial="A">
      <search>Abel</search>
      <replace>Caín</replace>
      <count>1</count>
   </translation>

where the out put of the above element should be like this:

   <translation initial="A">
      <search>Abel</search>
      <counter>2</counter> <----- counter is 2 because there are two replaces elements
      <replace>Abel</replace>
      <replace>Caín</replace>
   </translation

* i have not tried the second reply.. i will try now
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

AussieSilverAuthor Commented:
Hi,

The second code is better but has the same issue like the 1st reply... would be appreciated if you troubleshoot the issue based on the second code ...
0
Geert BormansInformation ArchitectCommented:
Ah, you want to group?
0
AussieSilverAuthor Commented:
YES... so the counter will be 2
0
Geert BormansInformation ArchitectCommented:
Then you need Muenchian grouping
(read here: http://www.jenitennison.com/xslt/grouping/muenchian.xml)
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
    <xsl:output method="xml" version="1.0" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <xsl:key name="search" match="wordEntry" use="search"/>
    <xsl:template match="wordlist">
        <Dictionary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="translation.xsd">
            <from><xsl:value-of select="@from" /></from>
            <to><xsl:value-of select="@to" /></to>
            <xsl:apply-templates select="wordEntry[generate-id() = generate-id(key('search', search)[1])]"/>
        </Dictionary>
    </xsl:template>
    <xsl:template match="wordEntry">
        <translation initial="{substring(search ,1,1)}">
            <xsl:copy-of select="search"/>
            <counter>
                <xsl:value-of select="count(key('search', search))"/>
            </counter>
            <xsl:copy-of select="key('search', search)/replace"/>
        </translation>
    </xsl:template>
</xsl:stylesheet>

Open in new window

0
AussieSilverAuthor Commented:
Hi,

Thanks for your efforts... did you change something in the last code to have grouping? it seems it still has the same issue :)
0
AussieSilverAuthor Commented:
any suggestions?? ... I read the link but it was not that helpful for me....
0
Geert BormansInformation ArchitectCommented:
My last code does the grouping correct
This is my test result
The key made the difference
<xsl:apply-templates select="wordEntry[generate-id() = generate-id(key('search', search)[1])]"/>

are you sure you used the latest, and there is nothing in the cache?
<?xml version="1.0" encoding="utf-8"?>
<Dictionary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="translation.xsd">
   <from>en</from>
   <to>es</to>
   <translation initial="A">
      <search>Ab Urbe condita</search>
      <counter>1</counter>
      <replace>Ab Urbe condita libri</replace>
   </translation>
   <translation initial="A">
      <search>Abel</search>
      <counter>2</counter>
      <replace>Abel</replace>
      <replace>Caín</replace>
   </translation>
</Dictionary>

Open in new window

0
AussieSilverAuthor Commented:
Hi,

yeah it seems working but how can I overcome duplicates? I used your xslt with the attached source document and It gave me some duplicates like:

- <translation initial="Z">
  <search>Zespri</search>
  <counter>2</counter>
  <replace>Actinidia deliciosa</replace>
  <replace>Actinidia deliciosa</replace>
  </translation>
-------------
- <translation initial="X">
  <search>Xenophon</search>
  <counter>2</counter>
  <replace>Jenofonte</replace>
  <replace>Jenofonte</replace>
  </translation>
------------------
- <translation initial="A">
  <search>Abel</search>
  <counter>4</counter>
  <replace>Abel</replace>
  <replace>Caín</replace>
  <replace>Abel</replace>
  <replace>Caín</replace>
  </translation>
<?xml version="1.0" encoding="UTF-8"?>
<wordlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="wordlist.xsd"
            from="en"
            to="es">
   <wordEntry>
      <search>A Clockwork Orange</search>
      <replace>La naranja mecánica</replace>
   </wordEntry>
   <wordEntry>
      <search>A Few Good Men</search>
      <replace>A Few Good Men</replace>
   </wordEntry>
   <wordEntry>
      <search>A Star Is Born</search>
      <replace>Ha nacido una estrella</replace>
   </wordEntry>
   <wordEntry>
      <search>Ab Urbe condita</search>
      <replace>Ab Urbe condita libri</replace>
   </wordEntry>
   <wordEntry>
      <search>Ab urbe condita</search>
      <replace>Ab urbe condita</replace>
   </wordEntry>
   <wordEntry>
      <search>Ab urbe condita</search>
      <replace>Ab urbe condita</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Abel</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Caín</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Abel</replace>
   </wordEntry>
   <wordEntry>
      <search>Abel</search>
      <replace>Caín</replace>
   </wordEntry>
   <wordEntry>
      <search>Alyosha Karamazov</search>
      <replace>Los hermanos Karamazov</replace>
   </wordEntry>
   <wordEntry>
      <search>And Then There Were None</search>
      <replace>Diez negritos</replace>
   </wordEntry>
   <wordEntry>
      <search>Angst</search>
      <replace>Gaslight</replace>
   </wordEntry>
   <wordEntry>
      <search>Gaslight</search>
      <replace>Gaslight</replace>
   </wordEntry>
   <wordEntry>
      <search>Around The World In 80 Days</search>
      <replace>La vuelta al mundo en ochenta días</replace>
   </wordEntry>
   <wordEntry>
      <search>Around the World in Eighty Days</search>
      <replace>La vuelta al mundo en ochenta días</replace>
   </wordEntry>
   <wordEntry>
      <search>Batman &amp; Robin</search>
      <replace>Batman y Robin</replace>
   </wordEntry>
   <wordEntry>
      <search>Bomarzo</search>
      <replace>Bomarzo</replace>
   </wordEntry>
   <wordEntry>
      <search>Brave New World</search>
      <replace>Un mundo feliz</replace>
   </wordEntry>
   <wordEntry>
      <search>Casino Royale</search>
      <replace>Casino Royale</replace>
   </wordEntry>
   <wordEntry>
      <search>Cheaper by the Dozen</search>
      <replace>Más barato por docena</replace>
   </wordEntry>
   <wordEntry>
      <search>Cinderella</search>
      <replace>La Cenicienta</replace>
   </wordEntry>
   <wordEntry>
      <search>Da Vinci Code</search>
      <replace>El código Da Vinci</replace>
   </wordEntry>
   <wordEntry>
      <search>Dawn of the Dead</search>
      <replace>El amanecer de los muertos</replace>
   </wordEntry>
   <wordEntry>
      <search>Diary of a Chambermaid</search>
      <replace>Diario de una camarera</replace>
   </wordEntry>
   <wordEntry>
      <search>Dune</search>
      <replace>Dune</replace>
   </wordEntry>
   <wordEntry>
      <search>Evil Dead</search>
      <replace>Posesión infernal</replace>
   </wordEntry>
   <wordEntry>
      <search>Frankenstein</search>
      <replace>Frankenstein</replace>
   </wordEntry>
   <wordEntry>
      <search>Fyodor Karamazov</search>
      <replace>Los hermanos Karamazov</replace>
   </wordEntry>
   <wordEntry>
      <search>General San Martín Park</search>
      <replace>Parque General San Martín</replace>
   </wordEntry>
   <wordEntry>
      <search>Gentlemen Prefer Blondes</search>
      <replace>Los caballeros las prefieren rubias</replace>
   </wordEntry>
   <wordEntry>
      <search>Goldfinger</search>
      <replace>Goldfinger</replace>
   </wordEntry>
   <wordEntry>
      <search>Haitian Creole</search>
      <replace>Criollo haitiano</replace>
   </wordEntry>
   <wordEntry>
      <search>Haitian language</search>
      <replace>Criollo haitiano</replace>
   </wordEntry>
   <wordEntry>
      <search>Hamlet</search>
      <replace>Hamlet</replace>
   </wordEntry>
   <wordEntry>
      <search>House of Wax</search>
      <replace>La casa de cera</replace>
   </wordEntry>
   <wordEntry>
      <search>I, Robot</search>
      <replace>Yo, Robot</replace>
   </wordEntry>
   <wordEntry>
      <search>Il Gattopardo</search>
      <replace>El gatopardo</replace>
   </wordEntry>
   <wordEntry>
      <search>In Cold Blood</search>
      <replace>A sangre fría</replace>
   </wordEntry>
   <wordEntry>
      <search>Interview with the Vampire</search>
      <replace>Entrevista con el Vampiro</replace>
   </wordEntry>
   <wordEntry>
      <search>Ivan Karamazov</search>
      <replace>Los hermanos Karamazov</replace>
   </wordEntry>
   <wordEntry>
      <search>John Robert Schrieffer</search>
      <replace>John Robert Schrieffer</replace>
   </wordEntry>
   <wordEntry>
      <search>J Robert Schrieffer</search>
      <replace>John Robert Schrieffer</replace>
   </wordEntry>
   <wordEntry>
      <search>Joseph K</search>
      <replace>El proceso</replace>
   </wordEntry>
   <wordEntry>
      <search>Journey to the Center of the Earth</search>
      <replace>Viaje al centro de la Tierra</replace>
   </wordEntry>
   <wordEntry>
      <search>La Boheme</search>
      <replace>La Bohème</replace>
   </wordEntry>
   <wordEntry>
      <search>La Boheme</search>
      <replace>La Bohème</replace>
   </wordEntry>
   <wordEntry>
      <search>La bohème</search>
      <replace>La Bohème</replace>
   </wordEntry>
   <wordEntry>
      <search>La bohème</search>
      <replace>La Bohème</replace>
   </wordEntry>
   <wordEntry>
      <search>Les Miserables</search>
      <replace>Los miserables</replace>
   </wordEntry>
   <wordEntry>
      <search>Les Misérables</search>
      <replace>Los miserables</replace>
   </wordEntry>
   <wordEntry>
      <search>Librarians in the Name of the Rose</search>
      <replace>El nombre de la rosa</replace>
   </wordEntry>
   <wordEntry>
      <search>Lolita</search>
      <replace>Lolita</replace>
   </wordEntry>
   <wordEntry>
      <search>Lord of the Flies</search>
      <replace>El señor de las moscas</replace>
   </wordEntry>
   <wordEntry>
      <search>Lord of the Flies in popular culture</search>
      <replace>El señor de las moscas</replace>
   </wordEntry>
   <wordEntry>
      <search>M</search>
      <replace>M, el vampiro de Düsseldorf</replace>
   </wordEntry>
   <wordEntry>
      <search>Macbeth</search>
      <replace>Macbeth</replace>
   </wordEntry>
   <wordEntry>
      <search>Madame Bovary</search>
      <replace>Madame Bovary</replace>
   </wordEntry>
   <wordEntry>
      <search>Materialism</search>
      <replace>Materialismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Materialism</search>
      <replace>Materialismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Materialist</search>
      <replace>Materialismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Materialist</search>
      <replace>Materialismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Mathematica</search>
      <replace>Mathematica</replace>
   </wordEntry>
   <wordEntry>
      <search>Midsummer Night's Dream</search>
      <replace>El sueño de una noche de verano</replace>
   </wordEntry>
   <wordEntry>
      <search>Midsummer Night's Dream</search>
      <replace>El sueño de una noche de verano</replace>
   </wordEntry>
   <wordEntry>
      <search>Mountaineering</search>
      <replace>Montañismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Mountain climbing</search>
      <replace>Montañismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Alpinism</search>
      <replace>Montañismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Murder on the Orient Express</search>
      <replace>Asesinato en el Orient Express</replace>
   </wordEntry>
   <wordEntry>
      <search>Musketeers</search>
      <replace>Los tres mosqueteros</replace>
   </wordEntry>
   <wordEntry>
      <search>Myocardial infarction</search>
      <replace>Infarto</replace>
   </wordEntry>
   <wordEntry>
      <search>Myocardial infarction</search>
      <replace>Infarto de miocardio</replace>
   </wordEntry>
   <wordEntry>
      <search>Name of the Rose</search>
      <replace>El nombre de la rosa</replace>
   </wordEntry>
   <wordEntry>
      <search>Neverending Story</search>
      <replace>La historia interminable</replace>
   </wordEntry>
   <wordEntry>
      <search>Night Watch</search>
      <replace>La ronda de noche</replace>
   </wordEntry>
   <wordEntry>
      <search>Night Watch painting</search>
      <replace>La ronda de noche</replace>
   </wordEntry>
   <wordEntry>
      <search>Night of the Living Dead</search>
      <replace>La noche de los muertos vivientes</replace>
   </wordEntry>
   <wordEntry>
      <search>Nineteen Eighty-Four</search>
      <replace>Mil novecientos ochenta y cuatro</replace>
   </wordEntry>
   <wordEntry>
      <search>Northern Savonia</search>
      <replace>Savonia del Norte</replace>
   </wordEntry>
   <wordEntry>
      <search>Oath of the Horatii</search>
      <replace>Juramento de los Horacios</replace>
   </wordEntry>
   <wordEntry>
      <search>Oath of the Horatii</search>
      <replace>Juramento de los Horacios</replace>
   </wordEntry>
   <wordEntry>
      <search>Ocean's Eleven</search>
      <replace>Cuadrilla de los once</replace>
   </wordEntry>
   <wordEntry>
      <search>Ocean's Eleven</search>
      <replace>Ocean's Eleven</replace>
   </wordEntry>
   <wordEntry>
      <search>Oliver Twist</search>
      <replace>Oliver Twist</replace>
   </wordEntry>
   <wordEntry>
      <search>On Her Majesty's Secret Service</search>
      <replace>al servicio secreto de su majestad</replace>
   </wordEntry>
   <wordEntry>
      <search>Parque Central Complex</search>
      <replace>Torres de Parque Central</replace>
   </wordEntry>
   <wordEntry>
      <search>Parque Central Complex</search>
      <replace>Torres de Parque Central Caracas</replace>
   </wordEntry>
   <wordEntry>
      <search>Parque San Martin</search>
      <replace>Parque General San Martín</replace>
   </wordEntry>
   <wordEntry>
      <search>Parque San Martin</search>
      <replace>Parque General San Martín Mendoza</replace>
   </wordEntry>
   <wordEntry>
      <search>Persimmon</search>
      <replace>Diospyros kaki</replace>
   </wordEntry>
   <wordEntry>
      <search>Persimmon</search>
      <replace>Diospyros kaki</replace>
   </wordEntry>
   <wordEntry>
      <search>Persimmons</search>
      <replace>Diospyros kaki</replace>
   </wordEntry>
   <wordEntry>
      <search>Persimmons</search>
      <replace>Diospyros kaki</replace>
   </wordEntry>
   <wordEntry>
      <search>Peter Pan</search>
      <replace>Peter Pan</replace>
   </wordEntry>
   <wordEntry>
      <search>Phantom of the Opera</search>
      <replace>El Fantasma de la Ópera</replace>
   </wordEntry>
   <wordEntry>
      <search>Planet of the Apes</search>
      <replace>El planeta de los simios</replace>
   </wordEntry>
   <wordEntry>
      <search>Pride and Prejudice</search>
      <replace>Orgullo y prejuicio</replace>
   </wordEntry>
   <wordEntry>
      <search>Quality control</search>
      <replace>Control de calidad</replace>
   </wordEntry>
   <wordEntry>
      <search>Quality control</search>
      <replace>Control de calidad</replace>
   </wordEntry>
   <wordEntry>
      <search>Quebec city</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Quebec city</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Quebec city</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Quirinal</search>
      <replace>Quirinal</replace>
   </wordEntry>
   <wordEntry>
      <search>Quirinale</search>
      <replace>Quirinal</replace>
   </wordEntry>
   <wordEntry>
      <search>Quirinale</search>
      <replace>Quirinal</replace>
   </wordEntry>
   <wordEntry>
      <search>Québec City</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Québec City</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Québec City</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Québec City</search>
      <replace>Ciudad de Quebec</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionism</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionism</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionist</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionist</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionistic</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Reductionistic</search>
      <replace>Reduccionismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Roman Holiday</search>
      <replace>Vacaciones en Roma</replace>
   </wordEntry>
   <wordEntry>
      <search>Romeo and Juliet</search>
      <replace>Romeo y Julieta</replace>
   </wordEntry>
   <wordEntry>
      <search>Sense and Sensibility</search>
      <replace>Sensatez y sentimientos</replace>
   </wordEntry>
   <wordEntry>
      <search>Smerdyakov</search>
      <replace>Los hermanos Karamazov</replace>
   </wordEntry>
   <wordEntry>
      <search>Solaris</search>
      <replace>Solaris</replace>
   </wordEntry>
   <wordEntry>
      <search>St Mark's Cathedral</search>
      <replace>Basílica de San Marcos</replace>
   </wordEntry>
   <wordEntry>
      <search>St Mark's Cathedral</search>
      <replace>Basílica de San Marcos</replace>
   </wordEntry>
   <wordEntry>
      <search>The Brothers Karamazov</search>
      <replace>Los hermanos Karamazov</replace>
   </wordEntry>
   <wordEntry>
      <search>The Da Vinci Code</search>
      <replace>El código Da Vinci</replace>
   </wordEntry>
   <wordEntry>
      <search>The Evil Dead</search>
      <replace>Posesión infernal</replace>
   </wordEntry>
   <wordEntry>
      <search>The Exorcist</search>
      <replace>El Exorcista</replace>
   </wordEntry>
   <wordEntry>
      <search>The Fast and the Furious</search>
      <replace>The Fast and the Furious</replace>
   </wordEntry>
   <wordEntry>
      <search>The Fugitive</search>
      <replace>El fugitivo</replace>
   </wordEntry>
   <wordEntry>
      <search>The Great Gatsby</search>
      <replace>El gran Gatsby</replace>
   </wordEntry>
   <wordEntry>
      <search>Gatsby</search>
      <replace>El gran Gatsby</replace>
   </wordEntry>
   <wordEntry>
      <search>The Idiot</search>
      <replace>El idiota</replace>
   </wordEntry>
   <wordEntry>
      <search>The Island</search>
      <replace>La isla</replace>
   </wordEntry>
   <wordEntry>
      <search>The Italian Job</search>
      <replace>The Italian Job</replace>
   </wordEntry>
   <wordEntry>
      <search>The Jazz Singer</search>
      <replace>El cantante de jazz</replace>
   </wordEntry>
   <wordEntry>
      <search>The Leopard</search>
      <replace>El gatopardo</replace>
   </wordEntry>
   <wordEntry>
      <search>The Maltese Falcon</search>
      <replace>El halcón maltés</replace>
   </wordEntry>
   <wordEntry>
      <search>The Mummy</search>
      <replace>La Momia</replace>
   </wordEntry>
   <wordEntry>
      <search>The Name of the Rose</search>
      <replace>El nombre de la rosa</replace>
   </wordEntry>
   <wordEntry>
      <search>The Neverending Story</search>
      <replace>La historia interminable</replace>
   </wordEntry>
   <wordEntry>
      <search>The Old Man and the Sea</search>
      <replace>El viejo y el mar</replace>
   </wordEntry>
   <wordEntry>
      <search>The Phantom of the Opera</search>
      <replace>El Fantasma de la Ópera</replace>
   </wordEntry>
   <wordEntry>
      <search>The Picture of Dorian Gray</search>
      <replace>El retrato de Dorian Gray</replace>
   </wordEntry>
   <wordEntry>
      <search>The Ring</search>
      <replace>La señal</replace>
   </wordEntry>
   <wordEntry>
      <search>The Spy Who Loved Me</search>
      <replace>El espía que me amó</replace>
   </wordEntry>
   <wordEntry>
      <search>The Stranger</search>
      <replace>El extranjero</replace>
   </wordEntry>
   <wordEntry>
      <search>The Ten Commandments</search>
      <replace>Los diez mandamientos</replace>
   </wordEntry>
   <wordEntry>
      <search>The Texas Chainsaw Massacre</search>
      <replace>La matanza de Texas</replace>
   </wordEntry>
   <wordEntry>
      <search>The Three Musketeers</search>
      <replace>Los tres mosqueteros</replace>
   </wordEntry>
   <wordEntry>
      <search>The Trial</search>
      <replace>El proceso</replace>
   </wordEntry>
   <wordEntry>
      <search>The Untouchables</search>
      <replace>The Untouchables</replace>
   </wordEntry>
   <wordEntry>
      <search>Titanic</search>
      <replace>Titanic</replace>
   </wordEntry>
   <wordEntry>
      <search>To Kill a Mockingbird</search>
      <replace>Matar un ruiseñor</replace>
   </wordEntry>
   <wordEntry>
      <search>Treasure Island</search>
      <replace>La isla del tesoro</replace>
   </wordEntry>
   <wordEntry>
      <search>Ulysses</search>
      <replace>Ulises</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalism</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalism</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalism</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalism</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalist</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalist</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalist</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalist</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalists</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Universalists</search>
      <replace>Universalismo</replace>
   </wordEntry>
   <wordEntry>
      <search>Valais</search>
      <replace>Cantón del Valais</replace>
   </wordEntry>
   <wordEntry>
      <search>Valais</search>
      <replace>Cantón del Valais</replace>
   </wordEntry>
   <wordEntry>
      <search>Valencia</search>
      <replace>Comunidad Valenciana</replace>
   </wordEntry>
   <wordEntry>
      <search>Valencia</search>
      <replace>Provincia de Valencia</replace>
   </wordEntry>
   <wordEntry>
      <search>Valencia</search>
      <replace>Reino de Valencia</replace>
   </wordEntry>
   <wordEntry>
      <search>Valencia</search>
      <replace>Valencia</replace>
   </wordEntry>
   <wordEntry>
      <search>València</search>
      <replace>Valencia</replace>
   </wordEntry>
   <wordEntry>
      <search>València</search>
      <replace>Valencia</replace>
   </wordEntry>
   <wordEntry>
      <search>Vaudevillian</search>
      <replace>Vodevil</replace>
   </wordEntry>
   <wordEntry>
      <search>Vaudevillian</search>
      <replace>Vodevil</replace>
   </wordEntry>
   <wordEntry>
      <search>Vaudevillians</search>
      <replace>Vodevil</replace>
   </wordEntry>
   <wordEntry>
      <search>Vaudevillians</search>
      <replace>Vodevil</replace>
   </wordEntry>
   <wordEntry>
      <search>Volcano</search>
      <replace>Volcán</replace>
   </wordEntry>
   <wordEntry>
      <search>Volcano</search>
      <replace>Volcán</replace>
   </wordEntry>
   <wordEntry>
      <search>War and Peace</search>
      <replace>Guerra y paz</replace>
   </wordEntry>
   <wordEntry>
      <search>War of the Worlds</search>
      <replace>La guerra de los mundos</replace>
   </wordEntry>
   <wordEntry>
      <search>Witness for the Prosecution</search>
      <replace>Testigo de cargo</replace>
   </wordEntry>
   <wordEntry>
      <search>Wuthering Heights</search>
      <replace>Cumbres borrascosas</replace>
   </wordEntry>
   <wordEntry>
      <search>X chromosome</search>
      <replace>Cromosoma X</replace>
   </wordEntry>
   <wordEntry>
      <search>X chromosome</search>
      <replace>Cromosoma X</replace>
   </wordEntry>
   <wordEntry>
      <search>Xenophon</search>
      <replace>Jenofonte</replace>
   </wordEntry>
   <wordEntry>
      <search>Xenophon</search>
      <replace>Jenofonte</replace>
   </wordEntry>
   <wordEntry>
      <search>Yacht</search>
      <replace>Yate</replace>
   </wordEntry>
   <wordEntry>
      <search>Yacht</search>
      <replace>Yate</replace>
   </wordEntry>
   <wordEntry>
      <search>Yakuza</search>
      <replace>Yakuza</replace>
   </wordEntry>
   <wordEntry>
      <search>Yakuza</search>
      <replace>Yakuza</replace>
   </wordEntry>
   <wordEntry>
      <search>You Only Live Twice</search>
      <replace>Sólo se vive dos veces</replace>
   </wordEntry>
   <wordEntry>
      <search>Yugoslav Macedonia</search>
      <replace>República de Macedonia</replace>
   </wordEntry>
   <wordEntry>
      <search>Yugoslav Macedonia</search>
      <replace>República de Macedonia</replace>
   </wordEntry>
   <wordEntry>
      <search>Yugoslav Partisans</search>
      <replace>Partisanos</replace>
   </wordEntry>
   <wordEntry>
      <search>Yugoslav Partisans</search>
      <replace>Partisanos Yugoslavia</replace>
   </wordEntry>
   <wordEntry>
      <search>Zespri</search>
      <replace>Actinidia deliciosa</replace>
   </wordEntry>
   <wordEntry>
      <search>Zespri</search>
      <replace>Actinidia deliciosa</replace>
   </wordEntry>
   <wordEntry>
      <search>Zimniy Dvorets</search>
      <replace>Palacio de Invierno</replace>
   </wordEntry>
   <wordEntry>
      <search>Zimniy Dvorets</search>
      <replace>Palacio de Invierno</replace>
   </wordEntry>
   <wordEntry>
      <search>Zosimus</search>
      <replace>Zósimo</replace>
   </wordEntry>
   <wordEntry>
      <search>Zosimus</search>
      <replace>Zósimo historiador</replace>
   </wordEntry>
</wordlist>

Open in new window

0
Geert BormansInformation ArchitectCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.