Xpath Error not detected "slash before predicate"
Oxygen general issues.
Xpath Error not detected "slash before predicate"
I'm currently running Oxygen editor 22.1 and an Xpath error that should have been reported as an error is not showing up. Perhaps I'm missing something. Here's some sample xml and xpath that I'm running.
If I run the xpath //name/[surname eq 'invalid'] in xpath evaluator I get a query returned no results. Shouldn't it actually catch that there is a '/' before the start of the predicate and report that as an invalid xpath?
Code: Select all
<document>
<names>
<name>
<surname>testOne</surname>
</name>
<name>
<surname>testTwo</surname>
</name>
<name>
<surname>testThree</surname>
</name>
</names>
</document>
Re: Xpath Error not detected "slash before predicate"
Hi,
I asked on the XML.com Slack channel and it seems your XPath is valid because there is an array constructor in the XPath specs: https://www.w3.org/TR/xpath-31/#id-array-constructors
Regards,
Radu
I asked on the XML.com Slack channel and it seems your XPath is valid because there is an array constructor in the XPath specs: https://www.w3.org/TR/xpath-31/#id-array-constructors
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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