- in comments
Tuesday, 17 November 2020 · 2 messages
GC
Giuseppe G. A. Celano17 Nov 2020 18:18 #
Hi,
<!----->/data() is printed as - , while "-” as - (even if both are xs:string): is there a reason? In any case, is there a function to convert <!-----> 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:
<!--{xyz;-->/data()Cheers,
Christian
[1] https://www.w3.org/TR/xquery-31/#doc-xquery31-DirCommentContents
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, > > <!----->/data() is printed as - , while "-” as - (even if both are xs:string): is there a reason? In any case, is there a function to convert <!-----> into - ? Thanks. > > Best, > Giuseppe
Written for BaseX 9.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery