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 Michael Kay
Sorry, but the XPath/XQuery data model has no way of representing an element node whose name has an undeclared prefix. XPath and XQuery work only with namespace-well-formed XML. If you really need this badly enough, you could either (a) post-process the serialized XML to strip off the

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 output file will be some

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

2017-04-19 Thread Michael Kay
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? Michael Kay Saxonica > On 19 Apr 2017, at

[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: