You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jd...@locus.apache.org on 2000/03/14 17:52:40 UTC
cvs commit: xml-xalan/c/src/XSLT Stylesheet.cpp
jdonohue 00/03/14 08:52:40
Modified: c/src/XSLT Stylesheet.cpp
Log:
Removed comments
Revision Changes Path
1.7 +5 -12 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Stylesheet.cpp 2000/03/07 16:21:00 1.6
+++ Stylesheet.cpp 2000/03/14 16:52:39 1.7
@@ -93,7 +93,6 @@
#include "StylesheetRoot.hpp"
-
const Stylesheet::NamespaceVectorType Stylesheet::s_emptyNamespace;
@@ -355,8 +354,6 @@
m_firstTemplate = tmpl;
else
{
-// @@ JMD: was: can't make this an UnimplementedElement because there's not a
-// setNextSibling method -- is this right ??
ElemTemplateElement* next = m_firstTemplate;
while(0 != next)
{
@@ -890,7 +887,6 @@
XPathExecutionContext& executionContext) const
{
const NodeRefListBase *nl = 0;
-
if(0 != m_keyDeclarations.size())
{
bool foundDoc = false;
@@ -900,9 +896,12 @@
const KeyTable* const kt = m_key_tables[i];
if(doc == kt->getDocKey())
{
- foundDoc = true;
nl = kt->getNodeSetByKey(name, ref);
- break;
+ if (nl !=0 && nl->getLength() > 0)
+ {
+ foundDoc = true;
+ break;
+ }
}
}
if((0 == nl) && !foundDoc && m_needToBuildKeysTable)
@@ -981,12 +980,6 @@
void Stylesheet::addExtensionNamespace (const DOMString& uri, ExtensionNSHandler* nsh)
{
m_extensionNamespaces.insert(std::make_pair(uri, nsh));
- /*
- @@ JMD: Not in XMLParserLiaisonDefault
- XMLParserLiaisonDefault xld =
- ((XMLParserLiaisonDefault)m_XSLProcessor->m_parserLiaison);
- xld.addExtensionNamespace (uri, (ExtensionFunctionHandler) nsh);
- */
}