<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ghislain<div class=""><br class=""></div><div class="">thank you for your input, which solves my problem.</div><div class=""><br class=""></div><div class="">However, if I have the same element name in two different namespaces, then the use of a wildcard namespace makes problems ;-).</div><div class=""><br class=""></div><div class="">Always</div><div class="">Leo</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 01 Jun 2016, at 11:06, Ghislain Fourny <<a href="mailto:g@28.io" class="">g@28.io</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Leo,<div class=""><br class=""></div><div class="">If the input has no namespace, then I think you can declare the default namespace according to your output (if it is important to you that your output uses it as a default namespace).</div><div class=""><br class=""></div><div class="">Then there is a workaround to navigate the input with /*:foo/*:bar expressions, where the joker prefix should catch the absence of namespace.</div><div class=""><br class=""></div><div class="">I hope it helps?</div><div class=""><br class=""></div><div class="">Kind regards,</div><div class="">Ghislain</div><div class=""> </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jun 1, 2016 at 10:20 AM, Leo Studer <span dir="ltr" class=""><<a href="mailto:leo.studer@varioweb.ch" target="_blank" class="">leo.studer@varioweb.ch</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michael<br class="">
<span class=""><br class="">
><br class="">
><br class="">
> The main difference from the XSLT xpath-default-namespace is that this default applies both to names in path expressions and to names in element constructors, which is inconvenient when the input and output documents are in different namespaces.<br class="">
><br class="">
> Michael Kay<br class="">
> Saxonica<br class="">
<br class="">
</span>this is exactly my problem. The XML file has no namespace and the output has a namespace.<br class="">
<br class="">
Fist I tried<br class="">
<br class="">
        declare namespace null=“”;<br class="">
<br class="">
and in the query I wrote something like<br class="">
<br class="">
        null:elementName<br class="">
<br class="">
Then I get the error that namespace null is not declared….<br class="">
<br class="">
The only solution I found is to put a namespace in the XML file (which is not really what I want).<br class="">
<br class="">
Is there another way?<br class="">
<br class="">
Cheers<br class="">
<div class="HOEnZb"><div class="h5">Leo<br class="">
_______________________________________________<br class="">
<a href="mailto:talk@x-query.com" class="">talk@x-query.com</a><br class="">
<a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank" class="">http://x-query.com/mailman/listinfo/talk</a></div></div></blockquote></div><br class=""></div>
_______________________________________________<br class=""><a href="mailto:talk@x-query.com" class="">talk@x-query.com</a><br class="">http://x-query.com/mailman/listinfo/talk</div></blockquote></div><br class=""></div></body></html>