[jdev] ruby xmppd, and Psi

Peter Saint-Andre stpeter at stpeter.im
Wed Sep 17 17:29:52 CDT 2008


Hi Eric!

Eric Will wrote:

> Ruby's REXML library doesn't like 
> that Psi "re"defines xmlns:xml in the opening stream. 

The Namespaces in XML spec says:

    The prefix xml is by definition bound to the namespace name
    http://www.w3.org/XML/1998/namespace. It MAY, but need not, be
    declared, and MUST NOT be bound to any other namespace name. Other
    prefixes MUST NOT be bound to this namespace name, and it MUST NOT be
    declared as the default namespace.

When you say that Psi "redefines" xmlns:xml, do you mean it assigns that 
prefix to a namespace other than "http://www.w3.org/XML/1998/namespace"? 
Or does it simply declare that namespace (which according to the spec it 
MAY do)? If the latter, then I think REXML is in error.

/psa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20080917/9f76bc44/attachment-0002.bin>


More information about the JDev mailing list