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

Benny Prijono bennylp at teluu.com
Fri Oct 9 02:46:14 CDT 2009


Thanks for the report, Filipe. We fixed similar problem with PIDF but
looks like I missed this one. I've created
http://trac.pjsip.org/repos/ticket/966, will fix this ASAP.

Thanks again,
 Benny

On Thu, Oct 8, 2009 at 8:59 PM, Rafael Maia <rmaia_lcm at hotmail.com> wrote:
>
> 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
>
> ________________________________
> Novo Internet Explorer 8: traduza com apenas um clique. Baixe agora, é
> grátis!
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>



More information about the pjsip mailing list