You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/02/14 17:31:24 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/authoring create.xsl

gregor      2004/02/14 08:31:24

  Modified:    src/webapp/lenya/xslt/authoring create.xsl
  Log:
  disallow _ in document ids. was leading to problems with the language delimiter
  
  Revision  Changes    Path
  1.5       +2 -2      cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl
  
  Index: create.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- create.xsl	19 Jan 2004 14:45:06 -0000	1.4
  +++ create.xsl	14 Feb 2004 16:31:24 -0000	1.5
  @@ -44,9 +44,9 @@
   {
   	var result = true;
   	
  -	if (formField.value.match("[^a-zA-Z0-9_\\-]+"))
  +	if (formField.value.match("[^a-zA-Z0-9\\-]+"))
   	{
  -		alert('Please enter a valid value for the "' + fieldLabel +'" field. A-Z, a-z, 0-9, _ or -');
  +		alert('Please enter a valid value for the "' + fieldLabel +'" field. A-Z, a-z, 0-9 or -');
   		formField.focus();
   		result = false;
   	}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Re: cvs commit: cocoon-lenya/src/webapp/lenya/xslt/authoring create.xsl

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Rolf Kulemann wrote:
> On Sat, 2004-02-14 at 17:31, gregor@apache.org wrote:
> 
>>gregor      2004/02/14 08:31:24
>>
>>  Modified:    src/webapp/lenya/xslt/authoring create.xsl
>>  Log:
>>  disallow _ in document ids. was leading to problems with the language delimiter
> 
> 
> IMHO, the language delimiter should be changed from _ to .

for 1.4, sure. and make the path matchers smarter to not stop after the 
first .


-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: cvs commit: cocoon-lenya/src/webapp/lenya/xslt/authoring create.xsl

Posted by Rolf Kulemann <ro...@apache.org>.
On Sat, 2004-02-14 at 17:31, gregor@apache.org wrote:
> gregor      2004/02/14 08:31:24
> 
>   Modified:    src/webapp/lenya/xslt/authoring create.xsl
>   Log:
>   disallow _ in document ids. was leading to problems with the language delimiter

IMHO, the language delimiter should be changed from _ to .
:)

-- 
Regards,

    Rolf Kulemann


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org