```
 <xsl:value-of 
      select="concat(translate(., 'ABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúüÁÉÍÓÚ¿?&gt;&lt;:,&#10;&#13;', 'abcdefghijklmnñopqrstuvwxyz-aeiouuaeiou-------'), '.html')" />

```

I am using this XPath to eliminate unwanted characters from a string:

```
<somenode> This is a string
with new
lines
</somenode>

```

But it doesn't replace newlines (neither `&#10;` nor `&#13;`) as expected. The output still shows them as `%0D%0A`. 

In PHP, when I apply this RegEx to the exact same string `/[\n\r]/` (via `$somenode->nodeValue`), it does work as expected.

**UPDATE**

This is my XML, which is a little bit different from the example:

```
<temas>
...
<tema>
    <title>La tildación&#13;
diacrítica </title>
    <nav>
        <menu>
            <menu-item>La ortografía acentual: ¿cómo pongo las tildes? </menu-item>
            <menu-item>La tildación&#13;
diacrítica </menu-item>
            <menu-item>El diptongo y el hiato</menu-item>
        </menu>
    </nav>
    <content>
        ...
    </content>
    <pie>
        <prev>La ortografía acentual: ¿cómo pongo las tildes? </prev>
        <next>El diptongo y el hiato</next>
    </pie>
</tema>
</temas>

```

This is generated from a HTML file. The `^M`s in that file are transformed to `&#13;` and newlines. So, my guess is that the `&#13;` are not matched by the xpath. So my question should be "how do I match the string '&#13' with XPath?".