dbertoni 01/05/17 09:13:32
Modified: c/src/XSLT ElemElement.cpp
Log:
Minor clean-up.
Revision Changes Path
1.27 +7 -7 xml-xalan/c/src/XSLT/ElemElement.cpp
Index: ElemElement.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemElement.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ElemElement.cpp 2001/05/14 22:21:05 1.26
+++ ElemElement.cpp 2001/05/17 16:13:26 1.27
@@ -253,8 +253,14 @@
{
if(haveNamespace == false)
{
- if (namespaceLen == 0)
+ if (namespaceLen > 0)
{
+
outputResultNamespaces(executionContext, hasUnresolvedPrefix);
+
+
executionContext.addResultAttribute(DOMServices::s_XMLNamespace, elemNameSpace);
+ }
+ else
+ {
// OK, the namespace we're
generating is the default namespace,
// so let's make sure that we
really need it. If we don't,
// we end up with another
xmlns="" on the element we're
@@ -276,12 +282,6 @@
executionContext.addResultAttribute(DOMServices::s_XMLNamespace, elemNameSpace);
}
- }
- else
- {
-
outputResultNamespaces(executionContext, hasUnresolvedPrefix);
-
-
executionContext.addResultAttribute(DOMServices::s_XMLNamespace, elemNameSpace);
}
}
else
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]