dbertoni 00/06/01 07:21:40
Modified: c/src/XSLT FunctionElementAvailable.cpp
FunctionFunctionAvailable.cpp
Log:
Fixed bug with determining local name.
Revision Changes Path
1.3 +1 -1 xml-xalan/c/src/XSLT/FunctionElementAvailable.cpp
Index: FunctionElementAvailable.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionElementAvailable.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FunctionElementAvailable.cpp 2000/05/15 15:57:09 1.2
+++ FunctionElementAvailable.cpp 2000/06/01 14:21:40 1.3
@@ -105,7 +105,7 @@
const XalanDOMString theNamespace =
executionContext.getNamespaceForPrefix(prefix);
- const XalanDOMString elementName = indexOfNSSep < nameLength ?
fullName : substring(fullName, indexOfNSSep + 1);
+ const XalanDOMString elementName = indexOfNSSep == nameLength ?
fullName : substring(fullName, indexOfNSSep + 1);
return
executionContext.getXObjectFactory().createBoolean(executionContext.elementAvailable(theNamespace,
elementName));
}
1.3 +1 -3 xml-xalan/c/src/XSLT/FunctionFunctionAvailable.cpp
Index: FunctionFunctionAvailable.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionFunctionAvailable.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FunctionFunctionAvailable.cpp 2000/05/15 15:57:09 1.2
+++ FunctionFunctionAvailable.cpp 2000/06/01 14:21:40 1.3
@@ -92,8 +92,6 @@
{
executionContext.error("The function-available() function takes
one argument!",
context);
-
- return 0;
}
const XalanDOMString fullName = args[0]->str();
@@ -105,7 +103,7 @@
const XalanDOMString theNamespace =
executionContext.getNamespaceForPrefix(prefix);
- const XalanDOMString functionName = indexOfNSSep < nameLength ?
fullName : substring(fullName, indexOfNSSep + 1);
+ const XalanDOMString functionName = indexOfNSSep == nameLength ?
fullName : substring(fullName, indexOfNSSep + 1);
return
executionContext.getXObjectFactory().createBoolean(executionContext.functionAvailable(theNamespace,
functionName));
}