[Standards] XEP 297 xmlns and lang preservation in forwarding
kurt.zeilenga at isode.com
Thu Aug 14 20:34:59 UTC 2014
Maybe a reworded implementation approach...
Copy stanza verbatim from the stream it was received on into <forwarded/>, replicate any applicable item from that stream which is, per normal XML processing, inherited by the stanza, by augmentation of the <forwarded/> element, such as by copying all namespace declarations and any xml:;lang attribute, to the <forwarded/> element and, if necessary, changing the prefix for the forwarded namespace so that it's distinct from those copied from that stream.
The primary rationale for this approach is that allows verbatim copying of the stanza from the stream it was received on (or created in respect to) into a <forwarded/> element and avoids the need for deep inspection of the stanza to be forwarded.
More information about the Standards