Editor v19.1 build 2017102417: XPath bug or is it me?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 47
- Joined: Mon Jun 26, 2006 10:40 pm
Editor v19.1 build 2017102417: XPath bug or is it me?
Hi all,
I'm having a weird issue with the XPath/XQuery Builder in v19.1 and I'm not sure if it's me, or a bug, or what. Any thoughts will be greatly appreciated.
Given a file:
Trying to run the following XPath 1.0 query,
using the XQuery/XPath builder, against this file is returning the following error message:
The same query, using the XPath toolbar, works correctly; i.e. returns the highlighted section of the input file.
Am I misusing the XPath/XQuery builder view? Please let me know if I can provide additional details.
Thanks in advance for your time and trouble.
I'm having a weird issue with the XPath/XQuery Builder in v19.1 and I'm not sure if it's me, or a bug, or what. Any thoughts will be greatly appreciated.
Given a file:
Code: Select all
<list>
<entry coll="abc" dept="def" disc="ghi"/>
</list>
Code: Select all
//entry[@dept='def']
Code: Select all
ro.sync.xml.xpath.g: Prefix must resolve to a namespace:
at ro.sync.xml.xpath.l.d(Unknown Source)
at ro.sync.xml.xpath.f.cb(Unknown Source)
at ro.sync.xml.xpath.f.ab(Unknown Source)
at ro.sync.exml.editor.xmleditor.i.n.dls(Unknown Source)
at ro.sync.exml.editor.xmleditor.i.n.jls(Unknown Source)
at ro.sync.exml.editor.xmleditor.i.n.kls(Unknown Source)
at ro.sync.exml.editor.xmleditor.i.n.cls(Unknown Source)
at ro.sync.exml.editor.xmleditor.i.n$1.pie(Unknown Source)
at ro.sync.ui.application.nb.run(Unknown Source)
Caused by: org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace:
at org.apache.xpath.compiler.XPathParser.errorForDOM3(XPathParser.java:655)
at org.apache.xpath.compiler.Lexer.mapNSTokens(Lexer.java:647)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:224)
at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:98)
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:112)
at org.apache.xpath.XPath.<init>(XPath.java:178)
at ro.sync.xml.xpath.l.g(Unknown Source)
... 9 more
Am I misusing the XPath/XQuery builder view? Please let me know if I can provide additional details.
Thanks in advance for your time and trouble.
-
- Posts: 47
- Joined: Mon Jun 26, 2006 10:40 pm
Re: Editor v19.1 build 2017102417: XPath bug or is it me?
Excuse me, please. I think I'm the problem here (PEBKAC) -- I had inserted a comment `(:...
` above the XPath expression and it looks like that's what was causing the error.
Apologies for the noise.

Apologies for the noise.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service