Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-02 Thread Imsieke, Gerrit, le-tex
Hi Hugh, Did you see Christian’s reply, archived at https://mailman.uni-konstanz.de/pipermail/basex-talk/2018-August/013490.html⁠? 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 regression. I agree

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-02 Thread Christian Grün
Hi Hugh, > 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 supplied

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-02 Thread Hugh Guiney
Hi Vincent, 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 to use

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Lizzi, Vincent
Hugh, 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

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Hugh Guiney
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

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Christian Grün
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. The result: http://backend.userland.com/rss2; xmlns:content="http://purl.org/rss/1.0/modules/content/; version="2.0"> I get the reported error

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Imsieke, Gerrit, le-tex
Hi Hugh, The second version where you specify the serialization options in XQuery works for me (BaseX GUI 8.6.5 with Saxon PE 9.6.0.7): http://backend.userland.com/rss2; xmlns:content="http://purl.org/rss/1.0/modules/content/; version="2.0"> The first version cannot generate

Re: [basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Christian Grün
Hi Hugh, 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. Best, Christian Hugh Guiney schrieb am Mi., 1. Aug. 2018, 21:17: > Hello, > > First

[basex-talk] Can't get `cdata-section-elements` to work at all for XSLT output

2018-08-01 Thread Hugh Guiney
Hello, 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 `content:encoded`