- in comments

Tuesday, 17 November 2020 · 2 messages
GC
Giuseppe G. A. Celano17 Nov 2020 18:18 #
Hi,
<!--&#45;-->/data() is printed as &#45; , while "&#45;” as -  (even if both are xs:string): is there a reason? In any case, is there a function to convert <!--&#45;--> into - ? Thanks.
Best, Giuseppe
CG
Christian Grün17 Nov 2020 18:31 #
Hi Giuseppe, The reason is the specification: entities in comments are adopted without change (i.e. in their literal representation) [1]. The following example expression will be successfully evaluated:
<!--&#123xyz;-->/data()
Quoted text · Giuseppe G. A. Celano · 9 lines
On Tue, Nov 17, 2020 at 6:18 PM Giuseppe G. A. Celano <celano at informatik.uni-leipzig.de> wrote: > > Hi, > > <!--&#45;-->/data() is printed as &#45; , while "&#45;” as - (even if both are xs:string): is there a reason? In any case, is there a function to convert <!--&#45;--> into - ? Thanks. > > Best, > Giuseppe

⚡Generated with XQuery