You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/12/19 23:04:53 UTC

cvs commit: xml-xalan/c/src/XSLT ElemTemplateElement.cpp

dbertoni    01/12/19 14:04:53

  Modified:    c/src/XSLT ElemTemplateElement.cpp
  Log:
  Moved NCName checking from here to XPath/XalanQName
  
  Revision  Changes    Path
  1.70      +1 -34     xml-xalan/c/src/XSLT/ElemTemplateElement.cpp
  
  Index: ElemTemplateElement.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemTemplateElement.cpp,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- ElemTemplateElement.cpp	2001/11/26 23:20:04	1.69
  +++ ElemTemplateElement.cpp	2001/12/19 22:04:53	1.70
  @@ -261,40 +261,7 @@
   bool
   ElemTemplateElement::isValidNCName(const XalanDOMString&	s)
   {
  -    const XalanDOMString::size_type		len = length(s);
  -
  -	if (len == 0)
  -	{
  -		return false;
  -	}
  -	else
  -	{
  -		XalanDOMChar	c = charAt(s, 0);
  -
  -		if(!(XalanXMLChar::isLetter(c) || c == XalanUnicode::charLowLine))
  -		  return false;
  -
  -		if(len > 1)
  -		{
  -			for(XalanDOMString::size_type i = 1; i < len; i++)
  -			{
  -				c = charAt(s, i); 
  -
  -				if(!(XalanXMLChar::isLetter(c) ||
  -					 XalanXMLChar::isDigit(c) ||
  -					 XalanXMLChar::isExtender(c) ||
  -					 XalanXMLChar::isCombiningChar(c) ||
  -					 c == XalanUnicode::charLowLine ||
  -					 c == XalanUnicode::charHyphenMinus ||
  -					 c == XalanUnicode::charFullStop))
  -				{
  -					return false;
  -				}
  -			}
  -		}
  -
  -		return true;
  -	}
  +	return XalanQName::isValidNCName(s);
   }
   
   
  
  
  

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