Apply XPath on collection
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 23
- Joined: Mon Feb 20, 2017 8:03 pm
Apply XPath on collection
I want to evaluate an XPath on a collection like this:
string-join(
collection("file:/C:/Users/me/my-folder/")//biblStruct/@xml:id,
" "
)
I expect the XPath to have one final result of type string. But oXygen seems to return something depending on the selected scope. When using "current file", the XPath is only applied to the current file, when selecting "Project" or "Working sets", oXygen applies the XPath to each file *separately*.
How to really apply the XPath to a collection of files and obtain exactly *one* result?
string-join(
collection("file:/C:/Users/me/my-folder/")//biblStruct/@xml:id,
" "
)
I expect the XPath to have one final result of type string. But oXygen seems to return something depending on the selected scope. When using "current file", the XPath is only applied to the current file, when selecting "Project" or "Working sets", oXygen applies the XPath to each file *separately*.
How to really apply the XPath to a collection of files and obtain exactly *one* result?
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Apply XPath on collection
Hi,
Unfortunately the scope does not behave as an XML collection(). The XPath is simply applied on each file from the scope. We already have an issue on our side to look into how we could make your use case work, if we manage to do that in a future version we'll update this forum thread.
Regards,
Radu
Unfortunately the scope does not behave as an XML collection(). The XPath is simply applied on each file from the scope. We already have an issue on our side to look into how we could make your use case work, if we manage to do that in a future version we'll update this forum thread.
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)
- ↳ 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