[Standards] XEP-0372 references pointing to different elements in same stanza

Kevin Smith kevin.smith at isode.com
Thu Sep 9 17:15:44 UTC 2021



> On 9 Sep 2021, at 18:06, Florian Schmaus <flo at geekplace.eu> wrote:
> 
> On 13/08/2021 14.00, JC Brand wrote:> <message type="headline" from="school at springfield.city">
>>     <subject id="subject">Attention Bart Simpson</subject>
>>     <body id="body">Please hand in your homework before the end of the day</body>
>>     <reference anchor="#subject" begin="9" end="21" type="mention"/>
>> </message>
> 
> Why is there a number sign ('#') before the element name? What if there is another first-level stanza child element with a local name 'subject' but a different namespace?

It’s not the element name, it’s just (possibly unfortunately) the same in that example. It’s the id. 

/K


More information about the Standards mailing list