Re: Websockets RFC: stream: prefix required or not?

"Christian Schudt" <[email protected]>
Newsgroups gmane.network.jabber.devel
Message-ID <trinity-172ee2f9-2828-45ef-b3c4-fa8de7a7fa56-1422969534751@3capp-gmx-bs29>
I agree that the example might be confusing. But the text reads ok for me. Actually the whole section boils down to:

"Just make sure to produce valid XML".

For me this is self-evident and actually shouldn't require further detailed explanation and examples.

Gesendet: Dienstag, 03. Februar 2015 um 13:51 Uhr

Von: "Michael Weibel" <[email protected]>

An: "Jabber/XMPP software development list" <[email protected]>

Betreff: Re: [jdev] Websockets RFC: stream: prefix required or not?

Because the example is confusing (IMHO) :

Note that for stream features and errors, there is no parent context

element providing the "stream" namespace prefix as in [RFC6120], and

thus the stream prefix MUST be declared or use an unprefixed form:

<stream:features xmlns:stream=" http://etherx.jabber.org/streams ">

<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>

</stream:features>

-- OR --

<error xmlns=" http://etherx.jabber.org/streams ">

<host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>

</error>

The text is could be better "and thus the stream prefix MUST be declared or use an unprefixed form" and also the example (using twice the features instead of once features & once error). E.g. something like that:

Note that for stream features and errors, there is no parent context

element providing the "stream" namespace prefix as in [RFC6120], and

thus the stream prefix MUST be declared or use an unprefixed form:

<stream:features xmlns:stream=" http://etherx.jabber.org/streams ">

<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>

</stream:features>

-- OR --

<features xmlns=" http://etherx.jabber.org/streams ">

<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>

</features>

Would help a lot already, I think.

2015-02-03 13:16 GMT+01:00 Florian Schmaus < [email protected] >:

On 03.02.2015 12:53, Michael Weibel wrote:

> It looks as if you'd need to use the "stream:" prefix for "features" but

> you shouldn't/mustn't use it for "error".

What makes you think that you need to use a prefix (or String 'stream'

as prefix) when using features?

- Florian

_______________________________________________

JDev mailing list

Info: http://mail.jabber.org/mailman/listinfo/jdev

Unsubscribe: [email protected]

_______________________________________________

_______________________________________________ JDev mailing list Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: [email protected] _______________________________________________

_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.