01: /*
02: * Created on 6 Oct 2006
03: */
04: package uk.org.ponder.rsf.template;
05:
06: import java.util.Map;
07:
08: import uk.org.ponder.rsf.content.ContentTypeInfoRegistry;
09:
10: public class RSFNamespaceRemovingTPI implements ContentTypedTPI {
11: public void adjustAttributes(String tag, Map attributes) {
12: if (attributes.containsKey("xmlns:rsf")) {
13: attributes.remove("xmlns:rsf");
14: }
15: }
16:
17: public String[] getInterceptedContentTypes() {
18: return new String[] { ContentTypeInfoRegistry.HTML,
19: ContentTypeInfoRegistry.HTML_FRAGMENT };
20: }
21: }
|