diff --git a/src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl b/src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
index 298ec2fa..a42b82b0 100644
--- a/src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
+++ b/src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
@@ -255,20 +255,28 @@
+
-
+
-
+
-
+
+
+
+
+
+
+
+
diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.docbook.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.docbook.xml
new file mode 100644
index 00000000..270e5b12
--- /dev/null
+++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.docbook.xml
@@ -0,0 +1,11 @@
+
+
+ some anchor with a name attribute.
+ some anchor with a name attribute.
+ another anchor that should be removed due to lack of name uniqueness.
+
diff --git a/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.xhtml5.edit.xml b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.xhtml5.edit.xml
new file mode 100644
index 00000000..e5d9792e
--- /dev/null
+++ b/tests/lib/eZ/RichText/Converter/Xslt/_fixtures/xhtml5/edit/lossy/008-anchor.xhtml5.edit.xml
@@ -0,0 +1,6 @@
+
+
+
some anchor with a name attribute.
+
some anchor with a name attribute.
+
another anchor that should be removed due to lack of name uniqueness.