dbertoni    01/12/19 14:08:55

  Modified:    c/src/XSLT Stylesheet.cpp
  Log:
  Names of keys should be QNames.
  
  Revision  Changes    Path
  1.69      +14 -1     xml-xalan/c/src/XSLT/Stylesheet.cpp
  
  Index: Stylesheet.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- Stylesheet.cpp    2001/12/14 16:25:27     1.68
  +++ Stylesheet.cpp    2001/12/19 22:08:55     1.69
  @@ -272,15 +272,28 @@
        }
   
        if(0 == nameAttr)
  +     {
                constructionContext.error("xsl:key requires a 'name' attribute");
  +     }
   
        if(0 == matchAttr)
  +     {
                constructionContext.error("xsl:key requires a 'match' attribute");
  +     }
   
        if(0 == useAttr)
  +     {
                constructionContext.error("xsl:key requires a 'use' attribute");
  +     }
   
  -     m_keyDeclarations.push_back(KeyDeclaration(XalanDOMString(nameAttr), 
*matchAttr, *useAttr));
  +     const XalanQNameByValue         theQName(nameAttr, m_namespaces, 
constructionContext.getLocatorFromStack());
  +
  +     if (theQName.isValid() == false)
  +     {
  +             constructionContext.error("xsl:key has an invalid 'name' attribute");
  +     }
  +
  +     m_keyDeclarations.push_back(KeyDeclaration(theQName, *matchAttr, *useAttr));
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to