Raymond Feng wrote:
Hi,

By the Namespaces in XML 1.0 (second edition) [1]:

[Definition: An XML namespace is identified by a URI reference [RFC3986]; element and attribute names may be placed in an XML namespace using the mechanisms described in this specification. ]

By RFC3986 [2]:

  URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

  hier-part     = "//" authority path-abempty
                / path-absolute
                / path-rootless
                / path-empty

  URI-reference = URI / relative-ref

So # is a valid char for XML namespace.

I couldn't find the information about '{' or '}' in RFC3986. But RFC2396 [3] says they are not allowed for URI.

Thanks,
Raymond

[1] http://www.w3.org/TR/REC-xml-names/
[2] http://www.rfc-editor.org/rfc/rfc3986.txt
[3] http://www.ietf.org/rfc/rfc2396.txt


OK Thanks, what about the other questions?

and also research the XML-* specs for standard ways to express QNames (other than namespace prefix notation).

Isn't there other usages of URI + localName in the XML-* spec stack?


Also, I'm not sure I understand the code issue. Can't the call to String.indexOf('#') just be changed to String.lastIndexOf('#')?

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to