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 2002/11/07 22:44:37 UTC
cvs commit: xml-xalan/c/src/XSLT ElemValueOf.cpp ElemValueOf.hpp
dbertoni 2002/11/07 13:44:37
Modified: c/src/XSLT ElemValueOf.cpp ElemValueOf.hpp
Log:
Fixed code for old xlC front-end.
Revision Changes Path
1.33 +33 -3 xml-xalan/c/src/XSLT/ElemValueOf.cpp
Index: ElemValueOf.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemValueOf.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- ElemValueOf.cpp 6 Nov 2002 05:09:48 -0000 1.32
+++ ElemValueOf.cpp 7 Nov 2002 21:44:37 -0000 1.33
@@ -243,14 +243,44 @@
XalanNode* sourceNode,
const XObjectPtr theValue) const
{
+ if (m_selectPattern != 0)
+ {
+ fireSelectionEvent(
+ executionContext,
+ sourceNode,
+ theValue,
+ m_selectPattern->getExpression().getCurrentPattern());
+ }
+ else
+ {
+ const StylesheetExecutionContext::GetAndReleaseCachedString thePattern(executionContext);
+
+ thePattern.get() = XALAN_STATIC_UCODE_STRING(".");
+
+ fireSelectionEvent(
+ executionContext,
+ sourceNode,
+ theValue,
+ thePattern.get());
+ }
+
+}
+
+
+
+void
+ElemValueOf::fireSelectionEvent(
+ StylesheetExecutionContext& executionContext,
+ XalanNode* sourceNode,
+ const XObjectPtr theValue,
+ const XalanDOMString& thePattern) const
+{
executionContext.fireSelectEvent(
SelectionEvent(
executionContext,
sourceNode,
*this,
StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("select")),
- m_selectPattern == 0 ?
- StaticStringToDOMString(XALAN_STATIC_UCODE_STRING(".")) :
- m_selectPattern->getExpression().getCurrentPattern(),
+ thePattern,
theValue));
}
1.15 +7 -0 xml-xalan/c/src/XSLT/ElemValueOf.hpp
Index: ElemValueOf.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemValueOf.hpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ElemValueOf.hpp 6 Nov 2002 05:09:48 -0000 1.14
+++ ElemValueOf.hpp 7 Nov 2002 21:44:37 -0000 1.15
@@ -119,6 +119,13 @@
XalanNode* sourceNode,
const XObjectPtr theValue) const;
+ void
+ fireSelectionEvent(
+ StylesheetExecutionContext& executionContext,
+ XalanNode* sourceNode,
+ const XObjectPtr theValue,
+ const XalanDOMString& thePattern) const;
+
/**
* The select pattern used to locate the value.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org