<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Should not, I agree. But evidently, it kinda does.
</span><span lang="EN-US" style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I do think people were confused by the prefixed example not being equivalent to unprefixed one.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">e.g. show both on feature or error as Michael suggested.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Elsewise, the unfortunately growing number of people who are not very familiar with XML  (ohh, JSON, what have you done to the world!) might have
 wrong take-away from the example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:7.0pt;font-family:"Verdana","sans-serif"">I agree that the example might be confusing.
</span><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">But the text reads ok for me. Actually the whole section boils down to:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">"Just make sure to produce valid XML".<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">For me this is self-evident and actually shouldn't require further detailed explanation and examples.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""> 
<o:p></o:p></span></p>
<div style="border:none;border-left:solid #C3D9E5 1.5pt;padding:0cm 0cm 0cm 6.0pt;margin-left:6.0pt;margin-top:6.0pt;margin-right:3.0pt;margin-bottom:3.0pt;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space" name="quote">
<div style="margin-bottom:6.0pt">
<p class="MsoNormal"><b><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">Gesendet:</span></b><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""> Dienstag, 03.
</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Verdana","sans-serif"">Februar 2015 um 13:51 Uhr<br>
<b>Von:</b> "Michael Weibel" <</span><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""><a href="mailto:michael.weibel+xmpp@gmail.com"><span lang="EN-US">michael.weibel+xmpp@gmail.com</span></a></span><span lang="EN-US" style="font-size:7.0pt;font-family:"Verdana","sans-serif"">><br>
<b>An:</b> "Jabber/XMPP software development list" <</span><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""><a href="mailto:jdev@jabber.org"><span lang="EN-US">jdev@jabber.org</span></a></span><span lang="EN-US" style="font-size:7.0pt;font-family:"Verdana","sans-serif"">><br>
<b>Betreff:</b> Re: [jdev] Websockets RFC: stream: prefix required or not?<o:p></o:p></span></p>
</div>
<div name="quoted-content">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">Because the
<a href="https://tools.ietf.org/html/rfc7395#section-3.3.3" target="_blank">example is confusing (IMHO)</a>:<br>
<br>
<br>
   Note that for stream features and errors, there is no parent context<br>
   element providing the "stream" namespace prefix as in [RFC6120], and<br>
   thus the stream prefix MUST be declared or use an unprefixed form:<br>
<br>
   <stream:features xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>"><br>
     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><br>
   </stream:features><br>
<br>
   -- OR --<br>
<br>
   <error xmlns="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>"><br>
     <host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><br>
   </error><br>
 <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">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:<br>
<br>
<br>
   Note that for stream features and errors, there is no parent context<br>
   element providing the "stream" namespace prefix as in [RFC6120], and<br>
   thus the stream prefix MUST be declared or use an unprefixed form:<br>
<br>
   <stream:features xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>"><br>
     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><br>
   </stream:features><br>
<br>
   -- OR --<br>
<br>
   <features xmlns="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>"><br>
     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><br>
   </features><br>
<br>
 <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">Would help a lot already, I think.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif""> 
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">2015-02-03 13:16 GMT+01:00 Florian Schmaus <<a href="flo@geekplace.eu" target="_parent">flo@geekplace.eu</a>>:
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span style="font-size:7.0pt;font-family:"Verdana","sans-serif"">On 03.02.2015 12:53, Michael Weibel wrote:<br>
> It looks as if you'd need to use the "stream:" prefix for "features" but<br>
> you shouldn't/mustn't use it for "error".<br>
<br>
What makes you think that you need to use a prefix (or String 'stream'<br>
as prefix) when using features?</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>