Bad xml id in file "pjsip\src\pjsip-simple\rpid.c"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

Hi,

    I found a problem on the file "pjsip\src\pjsip-simple\rpid.c", in the function pjrpid_add_element, line 149.

    The creation of the id attribute for the XML element "person" is not valid. The string being generated needs to start with a letter or an underscore, as specified on the XML Schema for this attribute.

    The XML schema for this attribute can be found on http://www.apps.ietf.org/rfc/rfc4479.html, page 26:
    <xs:attribute name="id" type="xs:ID" use="required"/>


    According with the definition of the xs:ID (http://www.w3.org/TR/2000/CR-xmlschema-2-20001024/#ID):
    "The lexical space of ID is the set of all strings that match the NCName production in[Namespaces in XML]."


    The specification of the NCName is the following:
    [4]       NCName       ::=       NCNameStartChar NCNameChar*    /* An XML Name, minus the ":" */
    [5]       NCNameChar       ::=       NameChar - ':'
    [6]       NCNameStartChar       ::=       Letter | '_'


BR,
Filipe Figueiredo
 		 	   		  
_________________________________________________________________
Acesse o Portal MSN do seu celular e se mantenha sempre atualizado. Clique aqui.
http://www.windowslive.com.br/celular/home.asp?utm_source=MSN_Hotmail&utm_medium=Tagline&utm_campaign=MobileServices200908
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091008/3fc72f7e/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux