XPath Sarch Field Grayed out

Having trouble installing Oxygen? Got a bug to report? Post it all here.
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

XPath Sarch Field Grayed out

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XPath Sarch Field Grayed out

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: XPath Sarch Field Grayed out

Post 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."
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XPath Sarch Field Grayed out

Post by adrian »

Hi,

How about the other two possible causes?
Does your document fall into one of those categories?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: XPath Sarch Field Grayed out

Post by patrick »

Hi,

no, it is a simple test file with ~20 short lines.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XPath Sarch Field Grayed out

Post by adrian »

Hi,

Could you please send us the file for analysis to support AT oxygenxml DOT com ?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: XPath Sarch Field Grayed out

Post by patrick »

You have mail ;-)
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: XPath Sarch Field Grayed out

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: XPath Sarch Field Grayed out

Post 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.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: XPath Sarch Field Grayed out

Post by Radu »

Hi Patrick,

This issue should be fixed in Oxygen 16.0.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply