You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Paul Hussein <pa...@jrc.it> on 2004/06/22 16:24:09 UTC
Property Namespaces question
Hi,
Can someone do me the favour of answering this question.
Why when I connect to a IIS WebDAV server when i call property.getName() on
a property it is prefixed by 'a:' and for Slide it is prefixed by 'D:' when
I explicitly enter my namespace when creating the property.
Is there a standard in the protocol for this or is this vendor independant,
and why does it not prefix with the namespace I entered.
Cheers
Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Property Namespaces question
Posted by Julian Reschke <ju...@gmx.de>.
Paul Hussein wrote:
> Just automatic code to allow editing of custom properties and not system
> properties.
>
> Thanks for the input.
Well, there's no generic way to do that. As a matter of fact, a "system"
property may be editable (such as DAV:displayname), while a custom
property may be read-only; so the distinction really makes little sense.
Best regards, Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: Property Namespaces question
Posted by Paul Hussein <pa...@jrc.it>.
Just automatic code to allow editing of custom properties and not system
properties.
Thanks for the input.
Cheers
Paul.
> -----Original Message-----
> From: Julian Reschke [mailto:julian.reschke@gmx.de]
> Sent: Wednesday, June 23, 2004 10:58 AM
> To: Slide Users Mailing List
> Subject: Re: Property Namespaces question
>
>
> Paul Hussein wrote:
> > It matters when I want to somehow determine which is a custom
> property and
> > which is not.
> >
> > In IIS the system ones are prefixed with a:, and in slide d:.
> >
> >
> > Is there another way to determine what is a predefined system
> property, and
> > a custom one?
>
> As already stated, the prefixes are irrelevant. What matters is the
> namespace URI to which they are mapped using the xmlns= declaration.
>
> That being said, there is no reliable way to find out what is a system
> property. As a matter of fact, it's not even trivial to define what that
> means. What exactly are you trying to find out?
>
> Best regards, Julian
>
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Property Namespaces question
Posted by Julian Reschke <ju...@gmx.de>.
Paul Hussein wrote:
> It matters when I want to somehow determine which is a custom property and
> which is not.
>
> In IIS the system ones are prefixed with a:, and in slide d:.
>
>
> Is there another way to determine what is a predefined system property, and
> a custom one?
As already stated, the prefixes are irrelevant. What matters is the
namespace URI to which they are mapped using the xmlns= declaration.
That being said, there is no reliable way to find out what is a system
property. As a matter of fact, it's not even trivial to define what that
means. What exactly are you trying to find out?
Best regards, Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Property Namespaces question
Posted by Stefan Lützkendorf <lu...@apache.org>.
it's as Ingo said, there is no need to deal with the prefix.
Your should use Property.getNamespaceURI() to determine the
namespace (i.e. "DAV:" for WebDAV property) and Property.getLocalname()
to get the properties name without the prefix. So you have to never
mind the prefix actually used.
Regards, Stefan
Paul Hussein wrote:
> It matters when I want to somehow determine which is a custom property and
> which is not.
>
> In IIS the system ones are prefixed with a:, and in slide d:.
>
>
> Is there another way to determine what is a predefined system property, and
> a custom one?
>
>
> Cheers
>
> Paul.
>
>
>>-----Original Message-----
>>From: Ingo Brunberg [mailto:ib@fiz-chemie.de]
>>Sent: Wednesday, June 23, 2004 9:29 AM
>>To: slide-user@jakarta.apache.org
>>Subject: Re: Property Namespaces question
>>
>>
>>That's because it doesn't really matter which prefix you use. It's
>>just XML. The important part is the namespace itself which is bound
>>to the prefix by a xmlns declaration.
>>
>>Ingo
>>
>>
>>>Hi,
>>>
>>>Can someone do me the favour of answering this question.
>>>
>>>Why when I connect to a IIS WebDAV server when i call
>>
>>property.getName() on
>>
>>>a property it is prefixed by 'a:' and for Slide it is prefixed
>>
>>by 'D:' when
>>
>>>I explicitly enter my namespace when creating the property.
>>>
>>>Is there a standard in the protocol for this or is this vendor
>>
>>independant,
>>
>>>and why does it not prefix with the namespace I entered.
>>>
>>>
>>>Cheers
>>>
>>>
>>>Paul.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: Property Namespaces question
Posted by Paul Hussein <pa...@jrc.it>.
It matters when I want to somehow determine which is a custom property and
which is not.
In IIS the system ones are prefixed with a:, and in slide d:.
Is there another way to determine what is a predefined system property, and
a custom one?
Cheers
Paul.
> -----Original Message-----
> From: Ingo Brunberg [mailto:ib@fiz-chemie.de]
> Sent: Wednesday, June 23, 2004 9:29 AM
> To: slide-user@jakarta.apache.org
> Subject: Re: Property Namespaces question
>
>
> That's because it doesn't really matter which prefix you use. It's
> just XML. The important part is the namespace itself which is bound
> to the prefix by a xmlns declaration.
>
> Ingo
>
> > Hi,
> >
> > Can someone do me the favour of answering this question.
> >
> > Why when I connect to a IIS WebDAV server when i call
> property.getName() on
> > a property it is prefixed by 'a:' and for Slide it is prefixed
> by 'D:' when
> > I explicitly enter my namespace when creating the property.
> >
> > Is there a standard in the protocol for this or is this vendor
> independant,
> > and why does it not prefix with the namespace I entered.
> >
> >
> > Cheers
> >
> >
> > Paul.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Property Namespaces question
Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
That's because it doesn't really matter which prefix you use. It's
just XML. The important part is the namespace itself which is bound
to the prefix by a xmlns declaration.
Ingo
> Hi,
>
> Can someone do me the favour of answering this question.
>
> Why when I connect to a IIS WebDAV server when i call property.getName() on
> a property it is prefixed by 'a:' and for Slide it is prefixed by 'D:' when
> I explicitly enter my namespace when creating the property.
>
> Is there a standard in the protocol for this or is this vendor independant,
> and why does it not prefix with the namespace I entered.
>
>
> Cheers
>
>
> Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org