HI.

Even in 7, I have seen the error, so it depends on the context at the time,
I guess.

Of course, you can rid yourself of the worry regardless of the situation by
not relying on the implied default namespace and define it in all of your
modules

declare default function namespace "http://www.w3.org/2005/xpath-functions";;

Kind Regards,
David


On 15 July 2014 10:55, "neil bradley" <[email protected]> wrote:

> Hi,
>
> For a long time I have written XQuery code in MarkLogic and seen error
> messages whenever I forgot to add the “fn:” prefix to XPath functions
> within library modules.
>
> Recently (since moving to ML 7 I believe) I have not seen those
> errors, so I just thought I was getting better at remembering to add
> the prefix.
>
> But then my code was run on an ML 6 instance, a number of the old
> errors appeared, revealing that I was still occasionally forgetting
> the prefix.
>
> So is it the case that ML 7 is simply become tolerant of missing fn:
> prefixes in library modules? If so, is there a way to return to the
> “strict” mode so that I know my code will run on ML 6?
>
> Thanks,
>
> Neil.
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to