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

2021-09-10 Thread JC Brand
On 09.09.21 19:22, Sam Whited wrote: Seems like we might as well use the element name since that has to be unique; one less unique ID to store. Element names are not unique. For example, you can have multiple elements in a PEP message. This is why my request is for the "anchor" attribute

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

2021-09-10 Thread JC Brand
On 09.09.21 19:15, Kevin Smith wrote: On 9 Sep 2021, at 18:06, Florian Schmaus wrote: On 13/08/2021 14.00, JC Brand wrote:> Attention Bart Simpson Please hand in your homework before the end of the day Why is there a number sign ('#') before the element name? What if

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

2021-09-09 Thread Sam Whited
Seems like we might as well use the element name since that has to be unique; one less unique ID to store. Also if you have a schema, structs, etc. in your language of choice you now don't have to go update them for every possible element to add an id attribute, there aren't conflicts with

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

2021-09-09 Thread Kevin Smith
> On 9 Sep 2021, at 18:06, Florian Schmaus wrote: > > On 13/08/2021 14.00, JC Brand wrote:> from="sch...@springfield.city"> >> Attention Bart Simpson >> Please hand in your homework before the end of the >> day >> >> > > Why is there a number sign ('#') before the element

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

2021-09-09 Thread Florian Schmaus
On 13/08/2021 14.00, JC Brand wrote:> from="sch...@springfield.city">     Attention Bart Simpson     Please hand in your homework before the end of the day     Why is there a number sign ('#') before the element name? What if there is another first-level stanza child element with a

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

2021-09-09 Thread Kevin Smith
On 13 Aug 2021, at 13:00, JC Brand wrote: > > Hi everyone > > In XEP-0372, when references are used for "mentions", there is an implicit > assumption that the referenced text is in the tag. > > There are however other elements where mentions could also occur, such as > , and , and some

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

2021-09-01 Thread JC Brand
On 31.08.21 17:23, Jonas Schäfer wrote: Libraries which currently represent body as a (mappnig of language tags to) string(s) would now need extra magic in order to be able to set ID attributes on those. This feels like a quite major change, and not just to References, but to literally

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

2021-09-01 Thread JC Brand
On 01.09.21 10:23, Sergey Ilinykh wrote: I mean to use both *anchor* and *xml:lang* attributes to not write a complicated element query parser if one is not provided by the used libs. What would you then put in the "anchor" attribute? If you say just the name of the referenced element (e.g.

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

2021-09-01 Thread Sergey Ilinykh
I mean to use both *anchor* and *xml:lang* attributes to not write a complicated element query parser if one is not provided by the used libs. Best Regards, Sergey ср, 1 сент. 2021 г. в 11:10, JC Brand : > > > On 01.09.21 10:06, Sergey Ilinykh wrote: > > why not just > > ``` > > > ``` > ? > >

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

2021-09-01 Thread JC Brand
On 01.09.21 10:06, Sergey Ilinykh wrote: why not just ``` ``` ? Because that doesn't distinguish between elements with different names. Is that reference based on the or tag? Or perhaps a tag? - JC ср, 1 сент. 2021 г. в 10:59, JC Brand >: Hi Jonas

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

2021-09-01 Thread Sergey Ilinykh
why not just ``` ``` ? Best Regards, Sergey ср, 1 сент. 2021 г. в 10:59, JC Brand : > Hi Jonas > > On 31.08.21 17:23, Jonas Schäfer wrote: > > Hi JC, > > This has somehow slipped past me. > > > Thanks for taking the time to respond. > > On Freitag, 13. August 2021 14:00:06 CEST JC Brand

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

2021-09-01 Thread JC Brand
Hi Jonas On 31.08.21 17:23, Jonas Schäfer wrote: Hi JC, This has somehow slipped past me. Thanks for taking the time to respond. On Freitag, 13. August 2021 14:00:06 CEST JC Brand wrote: So, if you have a stanza with for example, both "subject" and "body" tags, we can have references for

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

2021-08-31 Thread Jonas Schäfer
Hi JC, This has somehow slipped past me. On Freitag, 13. August 2021 14:00:06 CEST JC Brand wrote: > So, if you have a stanza with for example, both "subject" and "body" > tags, we can have references for both, and use the "anchor" attribute as > follows (I hope this comes out formatted properly

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

2021-08-25 Thread JC Brand
Hi all I didn't get any response, so I've gone ahead and made an MR with the proposed changes in the previous email. https://github.com/xsf/xeps/pull/1102 Regards JC On 13.08.21 14:00, JC Brand wrote: Hi everyone In XEP-0372, when references are used for "mentions", there is an implicit

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

2021-08-13 Thread JC Brand
Hi everyone In XEP-0372, when references are used for "mentions", there is an implicit assumption that the referenced text is in the tag. There are however other elements where mentions could also occur, such as , and , and some stanzas could have multiple possible elements whose text