Page 1 of 1
XPath Sarch Field Grayed out
Posted: Wed Feb 19, 2014 6:03 pm
by patrick
Hi,
we often have the problem, that the XPath field in the Find/Replace dialog is grayed out in some XML files.
Now we have found a problem which is responsible for that:
If MathML formulas are included in the document, the Field is grayed out if the namespace declaration is missing in one of the formulas, but the document is valid after the dtd validation.
What rules control this field and what can we do?
Thanks,
Patrick
Re: XPath Sarch Field Grayed out
Posted: Wed Feb 19, 2014 6:30 pm
by adrian
Hi,
If the XPath field is grayed out, the tooltip (hover the mouse pointer over it until it appears) of that field will explain the reason.
The cause can be one of the following:
- You are editing a broken (ill-formed) XML document.
- You are
Editing Documents with Long Lines (disabled due to performance issues).
- You are
Editing Large Documents - larger than 30MB - (disabled due to performance issues).
Regards,
Adrian
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 1:18 pm
by patrick
The tooltip text: "Can be only used on well-formed XML documents."
But Oxygen says "Document is well formed." and "Document is valid."
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 1:35 pm
by adrian
Hi,
How about the other two possible causes?
Does your document fall into one of those categories?
Regards,
Adrian
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 2:00 pm
by patrick
Hi,
no, it is a simple test file with ~20 short lines.
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 2:08 pm
by adrian
Hi,
Could you please send us the file for analysis to support AT oxygenxml DOT com ?
Regards,
Adrian
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 2:36 pm
by patrick
You have mail

Re: XPath Sarch Field Grayed out
Posted: Thu Feb 20, 2014 6:28 pm
by Radu
Hi Patrick,
Thanks for the samples, we reproduced the issue and added it to our bugs list.
We'll try to have a fix for it in Oxygen 16. Do you need it sooner?
Regards,
Radu
Re: XPath Sarch Field Grayed out
Posted: Thu Feb 27, 2014 12:26 pm
by patrick
I think it's ok with Oxygen 16 because it occurs only in some xml files and we can support our colleagues in how to change the xml to enable the xpath field.
Re: XPath Sarch Field Grayed out
Posted: Fri May 23, 2014 3:37 pm
by Radu
Hi Patrick,
This issue should be fixed in Oxygen 16.0.
Regards,
Radu