If the input and output are both in a namespace, and you want the output to be
in a namespace but with no namespace prefix, then I think your options are:
(a) Use *:name in path expressions (which may over-select)
(b) Bind a prefix p to the input namespace and use p:name in path expressions
(wh
Hi Leo,
I'm glad!
Should this happen, I guess you could add a filter using an XPath function
to test for the namespace of the name of the selected element.
https://www.w3.org/XML/Group/qtspecs/specifications/xpath-functions-30/html/Overview.html#func-node-name
and
https://www.w3.org/XML/Group/qt
Hi Ghislain
thank you for your input, which solves my problem.
However, if I have the same element name in two different namespaces, then the
use of a wildcard namespace makes problems ;-).
Always
Leo
> On 01 Jun 2016, at 11:06, Ghislain Fourny wrote:
>
> Hi Leo,
>
> If the input has no nam
Hi Leo,
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).
Then there is a workaround to navigate the input with /*:foo/*:bar
expressions, where the joker prefix sh
Hi Michael
>
>
> 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.
>
> Michael Kay
> Saxon