[Monetdb-developers] Q: pathfinder - cdata

Arjen P. de Vries arjen at acm.org
Thu Jul 12 20:46:42 CEST 2007


I have two followup questions then:

1.
should
<a><![CDATA[<sjoerd at acm.org>]]></a>
not leave the CDATA intact and not replace the < to < ?

Disclaimer: I am not very sure what should be correct.
http://www.w3.org/TR/2003/WD-xslt-xquery-serialization-20030502/
states
  Note:
  This is phrased to permit an implementor to provide an option that
attempts to preserve
  CDATA sections present in the source document.

2.
Should
xquery><![CDATA[<sjoerd at acm.org>]]></a>
more>MAPI  = monetdb at localhost:50000
QUERY = <![CDATA[<sjoerd at acm.org>]]></a>
ERROR = !parse error: syntax error, unexpected <![CDATA[ on line 1,
column 9 (next token is `<![CDATA[')
        !parse error: XQuery parsing failed

also have been allowed - a bit weird if it is allowed inside another element?

Cheers.

Arjen

On 12/07/07, Sjoerd Mullender <sjoerd at acm.org> wrote:
> Arjen P. de Vries wrote:
> > While
> > <a />
> > is accepted as a query,
> > <![CDATA[<]]>
> > is not.
> > !parse error: syntax error, unexpected <![CDATA[ on line 1, column 9
> > (next token is `<![CDATA[')
> > !parse error: XQuery parsing failed
> >
> > Is that the expected behaviour?
> >
> > Context: I try to output email addresses as "test <test at my.org>" and failing
> >
> > Arjen
> >
>
> This works:
>
> xquery><a><![CDATA[<sjoerd at acm.org>]]></a>
> more><>
> <a><sjoerd at acm.org></a>
>
>
> --
> Sjoerd Mullender
>
>
>


-- 
====================================================================
CWI, room C1.16          Centre for Mathematics and Computer Science
Kruislaan 413                           Email: Arjen.de.Vries at cwi.nl
1098 SJ Amsterdam                       tel:       +31-(0)20-5924306
The Netherlands                         fax:       +31-(0)20-5924312
===================== http://www.cwi.nl/~arjen/ ====================




More information about the developers-list mailing list