Browse Source

HPCC-19487 Allow dash (-) in names

Add a dash (-) to the name validation rule in related XSL

Signed-off-by: Ken Rowland <kenneth.rowland@lexisnexisrisk.com>
Ken Rowland 6 years ago
parent
commit
2d097a29ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      initfiles/componentfiles/configxml/validateAll.xsl

+ 1 - 1
initfiles/componentfiles/configxml/validateAll.xsl

@@ -42,7 +42,7 @@ xmlns:seisint="http://seisint.com" exclude-result-prefixes="seisint">
       </xsl:if> 
       </xsl:if> 
     </xsl:for-each>
     </xsl:for-each>
     <xsl:variable select="@name" name="elem1"/>
     <xsl:variable select="@name" name="elem1"/>
-        <xsl:if test="(translate($elem1,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_',''))" >
+        <xsl:if test="(translate($elem1,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-',''))" >
       <xsl:call-template name="validationMessage">
       <xsl:call-template name="validationMessage">
         <xsl:with-param name="msg" select=" concat('Invalid character[@name=' ,$elem1, ']') "/>
         <xsl:with-param name="msg" select=" concat('Invalid character[@name=' ,$elem1, ']') "/>
       </xsl:call-template>
       </xsl:call-template>