You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2003/04/26 15:42:44 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/common RequestedPropertiesImpl.java
pnever 2003/04/26 06:42:44
Modified: src/share/org/apache/slide/common
RequestedPropertiesImpl.java
Log:
Fixed bug: namespaces other than DAV: were not taken into account.
Revision Changes Path
1.11 +11 -5 jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java
Index: RequestedPropertiesImpl.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- RequestedPropertiesImpl.java 26 Jun 2002 05:00:00 -0000 1.10
+++ RequestedPropertiesImpl.java 26 Apr 2003 13:42:44 -0000 1.11
@@ -115,6 +115,7 @@
public void add(Element propElement) throws PropertyParseException {
String uri = propElement.getNamespace().getURI();
+ String prefix = propElement.getNamespace().getPrefix();
String name = propElement.getName ();
if (name.equals ("allprop") && uri.equals ("DAV:"))
@@ -126,13 +127,18 @@
while (it.hasNext()) {
Element prop = (Element)it.next();
uri = prop.getNamespace().getURI();
+ prefix = prop.getNamespace().getPrefix();
name = prop.getName ();
if (uri.equals ("DAV:") && name.equals ("property")) {
name = prop.getAttributeValue ("name");
+ if( prop.getAttributeValue ("namespace") != null ) {
+ uri = prop.getAttributeValue ("namespace");
+ prefix = ""; // will be ignored anyway
+ }
}
addProperty (createRequestedProperty(name,
- prop.getNamespace().getPrefix(),
+ prefix,
uri,
prop.getText(),
prop.getChildren()));
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org