diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch
index c206b52c..4129880d 100644
--- a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch
+++ b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch
@@ -249,24 +249,8 @@
-
-
-
- links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #
- using characters [< > "] in links is not allowed
+ using scripts in links is not allowed
diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl
index 6e4551bc..075885c0 100644
--- a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl
+++ b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl
@@ -73,13 +73,10 @@
ezlink must not occur in the descendants of link
-
+
-links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #
-
-
-using characters [< > "] in links is not allowed
+using scripts in links is not allowed
diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/ezpublish.rng b/src/lib/eZ/RichText/Resources/schemas/docbook/ezpublish.rng
index 2b3f4ed2..b179be12 100644
--- a/src/lib/eZ/RichText/Resources/schemas/docbook/ezpublish.rng
+++ b/src/lib/eZ/RichText/Resources/schemas/docbook/ezpublish.rng
@@ -6,6 +6,7 @@
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom"
xmlns:a="http://ez.no/xmlns/annotation"
xmlns:m="http://ez.no/xmlns/module"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
ns="http://docbook.org/ns/docbook"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
@@ -117,6 +118,16 @@
+
+
+ Identifies a link target with a URI
+
+
+ (https?://|mailto:|ezcontent://|ezlocation://|ezremote://|ezurl://|tel:|/|#).+
+
+
+
+
diff --git a/tests/lib/eZ/FieldType/RichTextTest.php b/tests/lib/eZ/FieldType/RichTextTest.php
index 3c4611ae..ae72288a 100644
--- a/tests/lib/eZ/FieldType/RichTextTest.php
+++ b/tests/lib/eZ/FieldType/RichTextTest.php
@@ -224,7 +224,14 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
- '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
+ 'Error in 3:0: Element section has extra content: para',
+ null,
+ [],
+ 'xml'
+ ),
+ new ValidationError(
+ "Validation of XML content failed:\n" .
+ '/section/para/link: using scripts in links is not allowed',
null,
[],
'xml'
@@ -239,7 +246,7 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
- '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
+ 'Error in 3:0: Element section has extra content: para',
null,
[],
'xml'
@@ -269,7 +276,14 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
- '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
+ 'Error in 3:0: Element section has extra content: para',
+ null,
+ [],
+ 'xml'
+ ),
+ new ValidationError(
+ "Validation of XML content failed:\n" .
+ '/section/para/link: using scripts in links is not allowed',
null,
[],
'xml'