Re: [basex-talk] restxq output cdata-section-elements
It works, however, if I wrap the elements with the serialize() function when constructing the output So: ... {serialize($ksp)} will result in (while still declaring %output:cdata-section-elements) 2017-06-01 23:19 GMT+02:00 Maximilian Gärber: > Hi, > > when setting > > %output:cdata-section-elements("KSP DESCRIPTION") > > on a restxq request, I get > > >Zur Aktivierung des... > außerordentlich hoher Biotingehalt (3 > Millionen µg pro kg) > gut bioverfügbares Zinksulfat > ausgewogenes Biotin-Zink-Verhältnis > > > > I would expect everything inside the DESCRIPTION element to be part of > CDATA. But CDATA ends before the first child element > > This happens with Basex 8.5.2 > > > Br, Max
Re: [basex-talk] restxq output cdata-section-elements
Am 01.06.2017 um 23:19 schrieb Maximilian Gärber: Hi, when setting %output:cdata-section-elements("KSP DESCRIPTION") on a restxq request, I get Zur Aktivierung des... außerordentlich hoher Biotingehalt (3 Millionen µg pro kg) gut bioverfügbares Zinksulfat ausgewogenes Biotin-Zink-Verhältnis I would expect everything inside the DESCRIPTION element to be part of CDATA. But CDATA ends before the first child element You would need to make sure the element contains text content, for instance by serializing the child elements first with the XPath/XQuery 3.0 serialize function.
[basex-talk] restxq output cdata-section-elements
Hi, when setting %output:cdata-section-elements("KSP DESCRIPTION") on a restxq request, I get Zur Aktivierung des... außerordentlich hoher Biotingehalt (3 Millionen µg pro kg) gut bioverfügbares Zinksulfat ausgewogenes Biotin-Zink-Verhältnis I would expect everything inside the DESCRIPTION element to be part of CDATA. But CDATA ends before the first child element This happens with Basex 8.5.2 Br, Max