Did you see Christian’s reply, archived at
He essentially said that, for your second approach, he saw the same
behavior on BaseX 9.x as I saw on 8.6.5. So there doesn’t seem to be a
> I understand, but did you see the details of my second attempt? The
> serialization controls didn’t work when specified in XQuery either.
I don’t get XPST0081 for this query (as indicated in a previous reply
of mine). Could you please clarify first if the unchanged query you
I understand, but did you see the details of my second attempt? The
serialization controls didn’t work when specified in XQuery either.
Which they should have, right? I mean, why else would BaseX provide
XSLT options like `output:omit-xml-declaration` if you’re not supposed
As Gerrit mentioned, the issue you have encountered is due to the
xslt:transform function returning, essentially, a parsed XML document, so the
serialization controls that are declared in the XSLT are not being used. If you
want the serialized output of the XSLT you can use the
Thanks for testing Gerrit, that's good to know. Sounds like a
regression then. Shall I go ahead and file this on Github or does it
need further confirmation?
Christian, your suggestion seems to work around the issue; the CDATA
sections do come in that way. Except, all the elements get sent back
Thanks, Gerrit, for testing the query with BaseX 8.6.5. I just tried
9.0.2 and 9.1 beta, and it runs successfully on my machine as well.
I get the reported error
The second version where you specify the serialization options in XQuery
works for me (BaseX GUI 8.6.5 with Saxon PE 18.104.22.168):
The first version cannot generate
Welcome to the list.
If you want to return the Saxon result as-is, you could try to use
xslt:transform-text instead of xslt:transform.
I’ll have a closer look at your second attempt next day.
Hugh Guiney schrieb am Mi., 1. Aug. 2018, 21:17:
First off, loving BaseX so far! Using it as the backend for an API I’m
building. However, I’m running into an issue. I’m trying to transform
my database XML into an RSS 2.0 feed. It’s mostly working fine, but I
can’t output CDATA content at all, which I need to do for
Mail list logo