You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2005/02/10 14:00:26 UTC
svn commit: r153213 -
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
Author: skitching
Date: Thu Feb 10 05:00:25 2005
New Revision: 153213
URL: http://svn.apache.org/viewcvs?view=rev&rev=153213
Log:
Apply substitutor to bodySegment text as well as body text.
Modified:
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diff&r1=153212&r2=153213
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java (original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java Thu Feb 10 05:00:25 2005
@@ -704,6 +704,12 @@
StringBuffer currTextSegment = context.getBodyTextSegment();
if (currTextSegment.length() > 0) {
String segment = currTextSegment.toString();
+
+ Substitutor substitutor = getSubstitutor();
+ if (substitutor != null) {
+ segment = substitutor.substitute(segment);
+ }
+
List parentMatches = (List) context.peekMatchingActions();
int len = parentMatches.size();
for(int i=0; i<len; ++i) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org