vgritsenko 2003/12/26 10:12:18
Modified: src/blocks/woody/java/org/apache/cocoon/woody/transformation
WidgetReplacingPipe.java
Log:
Seems like filtering of start/end prefix mapping is not enough, and ns
attributes in
start element should be filtered also. Remove this filtering for now.
Revision Changes Path
1.20 +3 -8
cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/transformation/WidgetReplacingPipe.java
Index: WidgetReplacingPipe.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/transformation/WidgetReplacingPipe.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- WidgetReplacingPipe.java 23 Dec 2003 08:46:17 -0000 1.19
+++ WidgetReplacingPipe.java 26 Dec 2003 18:12:18 -0000 1.20
@@ -392,10 +392,7 @@
public void startPrefixMapping(String prefix, String uri)
throws SAXException {
- if (Constants.WT_NS.equals(uri)) {
- // We consume this namespace completely
- this.namespacePrefix = prefix;
- } else if (inWidgetElement) {
+ if (inWidgetElement) {
saxBuffer.startPrefixMapping(prefix, uri);
} else {
super.startPrefixMapping(prefix, uri);
@@ -404,9 +401,7 @@
public void endPrefixMapping(String prefix)
throws SAXException {
- if (prefix.equals(this.namespacePrefix)) {
- // We consume this namespace completely
- } else if (inWidgetElement) {
+ if (inWidgetElement) {
saxBuffer.endPrefixMapping(prefix);
} else {
super.endPrefixMapping(prefix);