Hi Herve
the two PROPFIND responses you quoted (the one the server actually sent and
the one you expected) are XML-equivalent, i.e. a DOM parser would generate
equivalent trees.
We discarded to declare all non-DAV namespaces in the multistatus element
because, potentially, the multistatus element can contain a huge amount of
response elements (due to a Depth: infinity request). In the implementation
of PROPFIND, the response elements are written to the output stream while
the resources are processed ... instead of building first the complete
multistatus tree in memory.
I cannot imagine that previous versions of PROPFIND returned *the* namespace
prefix you provided at PROPPATCH. This is because the class
org.apache.slide.content.NodeProperty representing a property always stored
only the URL and not the prefix for the namespace.
Probably, previous versions of PROPFIND generated *a* namespace prefix for
the custom (dead) properties which could differ from the one you provided at
PROPPATCH.
Would it help, if PROPFIND generated namespace prefixes at the dead
property:
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:"/>
<D:response>
<D:href>http://localhost:8080/slide/files/toto</D:href>
<D:propstat>
<D:prop>
<h:contacts xmlns:h="http://test.fr">value</h:contacts>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
or, maybe, at the response element:
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:"/>
<D:response xmlns:h="http://test.fr">
<D:href>http://localhost:8080/slide/files/toto</D:href>
<D:propstat>
<D:prop>
<h:contacts>value</h:contacts>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
?
Regards, Peter
> -----Original Message-----
> From: Herve [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 19:44
> To: [EMAIL PROTECTED]
> Subject: Namespace abbreviations
>
>
>
> Hello,
>
> if I do a proppacth on a collection to add some properties
> that are on a
> different namespace than DAV, for example:
>
> <body><?xml version="1.0" encoding="utf-8" ?>
> <D:propertyupdate xmlns:D="DAV:" xmlns:h=http://test.fr"/>
> <D:set>
> <D:prop>
> <h:contacts>value</hm:contacts>
> </D:prop>
> </D:set>
> </D:propertyupdate>
> </body>
>
> It seems that I'm loosing the value of the abbreviation and
> that when I do a
> propfind on multiple properties, I can not factor namespace
> at the beginning
> of the response.
>
> Example of propfind response:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <D:multistatus xmlns:D="DAV:">
> <D:response>
> <D:href>http://localhost:8080/slide/files/toto</D:href>
> <D:propstat>
> <D:prop>
> <contacts xmlns="http://test.fr"/>value</contacts>
> </D:prop>
> <D:status>HTTP/1.1 200 OK</D:status>
> </D:propstat>
> </D:response>
> </D:multistatus>
>
> I would have expected:
> <?xml version="1.0" encoding="UTF-8"?>
> <D:multistatus xmlns:D="DAV:" xmlns:h="http://test.fr"/>
> <D:response>
> <D:href>http://localhost:8080/slide/files/toto</D:href>
> <D:propstat>
> <D:prop>
> <h:contacts>value</contacts>
> </D:prop>
> <D:status>HTTP/1.1 200 OK</D:status>
> </D:propstat>
> </D:response>
> </D:multistatus>
>
> I had the impression that this feature was present in
> previous version of
> slide and that now it's not supported anymore.
>
> Can somebody help me with this ?
>
> thanks
>
> Herve
>
>
>
>
>
> ______________________________________________________________
> ________________
> Pour mieux recevoir vos emails, utilisez un PC plus performant !
> D�couvrez la nouvelle gamme DELL en exclusivit� sur i (france)
> http://www.ifrance.com/_reloc/signedell
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>