Bug in XQuery "Outline" display of functions
Posted: Sun Sep 06, 2009 8:05 pm
Using oXygen XML Editor v10.3 on both XP and Mac OS X (10.6), I have noticed that in some of my XQuery files, the Outline view doesn't show all the functions in the xquery module.
For example, in one of my xquery files, I have nearly 35 functions, but the outline view only shows 5! The 5 listed come from throughout the file - they aren't just the first ones. The same 5 appear regardless of my Group By settings.
After testing this just now, I discovered a few ways to reproduce this:
Use "$text", "$node", "$element", or "$item" as one of the function parameters, e.g.
(: this function will *not* appear in the outline view :)
declare function local:hey1($text) {
'you'
};
(: this function *will* appear in the outline view :)
declare function local:hey2() {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey3($node) {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey4($element) {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey5($item) {
'you'
};
Only local:hey2() will appear in the outline view pane.
Is there a way to fix this? I'd really appreciate it if there is! I use $node and $element a fair amount; if I need to change, I can, but I imagine that many users will encounter this bug.
Thanks,
Joe
For example, in one of my xquery files, I have nearly 35 functions, but the outline view only shows 5! The 5 listed come from throughout the file - they aren't just the first ones. The same 5 appear regardless of my Group By settings.
After testing this just now, I discovered a few ways to reproduce this:
Use "$text", "$node", "$element", or "$item" as one of the function parameters, e.g.
(: this function will *not* appear in the outline view :)
declare function local:hey1($text) {
'you'
};
(: this function *will* appear in the outline view :)
declare function local:hey2() {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey3($node) {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey4($element) {
'you'
};
(: this function will *not* appear in the outline view :)
declare function local:hey5($item) {
'you'
};
Only local:hey2() will appear in the outline view pane.
Is there a way to fix this? I'd really appreciate it if there is! I use $node and $element a fair amount; if I need to change, I can, but I imagine that many users will encounter this bug.
Thanks,
Joe