Re: [xquery-talk] Omit namespace attributes in output file

2017-04-19 Thread xquery
Hi Michael, > (a) post-process the serialized XML to strip off the namespace declarations > (e.g. with a non-XML tool such as sed or awk), or ok, first I have to check, whether Confluence is able to deal with namespace declarations inside a wiki page anyway. If yes anything is fine. If not

Re: [xquery-talk] Omit namespace attributes in output file

2017-04-19 Thread xquery
Hi, > XQuery output has to be well-formed (and namespace-well-formed) XML, > so you can't output an element name like unless the > "ac" prefix is declared and bound to a namespace URI. Why would you > want to? Does Confluence really use non-namespace-aware XML? my xml ou

[xquery-talk] Omit namespace attributes in output file

2017-04-19 Thread xquery
Hi, I’m transforming some DocBook data into an XML file using XQuery. The transformation works perfectly so far. My problem is, that I have to use some confluence namespace tags like in the XML output file. So I have to declare the respective namespace at the beginning of my XQuery file

Re: [xquery-talk] SQL to XML with XQuery?

2017-08-11 Thread xquery
Hi Ghislain, > I got the query below to work on the sample that you gave us. It gives the > required input with Zorba and requires XQuery 3.0 (for the windows). It only > took a few minutes to write and can probably be improved, but this should > give you a starting point. tha

[xquery-talk] SQL to XML with XQuery?

2017-08-10 Thread xquery
Hi, I know that XQuery is typically used for transforming XML into other text file formats. But is it possible to use XQuery for the other way round? I want to transform a very simple SQL Create Table statement into XML. SQL === CREATE TABLE mytable1 ( FIELD1xxx; FIELD2

Re: [xquery-talk] SQL to XML with XQuery?

2017-08-10 Thread xquery
nd then > convert the contents to XML nodes. yes, the scenario is really that simple. I get files with round about 40 to 100 CREATE TABLEs each and have to transform those into XML files (subsequently I have to transform those XML files into DocBook entity files where XQuery would come int

Re: [xquery-talk] SQL to XML with XQuery?

2017-08-10 Thread xquery
Hi Christian, > Would you like to parse your SQL (or just DDL) expressions in XQuery > and execute them in a second step? Do you want to store SQL data in an > XML database in a leter step, or do you only want to create a schema > representation of your SQL table definitions in XM