From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Pokorný Date: Mon, 9 Dec 2013 22:02:59 +0100 Subject: [Cluster-devel] [PATCH 2/3] rgmanager: ra2rng.xsl: apache-*: datatype/restrict the params In-Reply-To: <1386622980-18460-1-git-send-email-jpokorny@redhat.com> References: <1386622980-18460-1-git-send-email-jpokorny@redhat.com> Message-ID: <1386622980-18460-3-git-send-email-jpokorny@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Note that this patch effectively limits the liberty that I found was expected at least in one case [1]: > name="debby" server_root="/var/www/html" shutdown_wait=""/> i.e., empty shutdown_wait, but it seems reasonable to require either the parameter is defined and then it has *valid* value, or not defined at all, that is, to put some boundaries on what is considered a canonical form (note: mentioned case can be trivially promoted to such a form using, e.g., XSLT, but it should be a responsibility of the tooling, not a validator, really). [1] http://www.redhat.com/archives/linux-cluster/2011-October/msg00035.html Signed-off-by: Jan Pokorn? --- rgmanager/src/resources/ra2rng.xsl | 44 +++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl index 4cce0da..f2cd56f 100644 --- a/rgmanager/src/resources/ra2rng.xsl +++ b/rgmanager/src/resources/ra2rng.xsl @@ -26,6 +26,44 @@ yes + + + 0 + + + + + + + + + + /[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+ + 4095 + + + + + + [\p{IsBasicLatin}\p{IsLatin-1Supplement}]+ + 4095 + + + + + + [\p{IsBasicLatin}\p{IsLatin-1Supplement}]+ + 2621440 + + + + @@ -237,11 +275,7 @@ 0 - - - 0 - - + -- 1.8.1.4