xpath eval in Transformation Scenario
Oxygen general issues.
-
- Posts: 11
- Joined: Fri Feb 12, 2021 8:46 pm
xpath eval in Transformation Scenario
Hello,
I am trying to use the xpath_eval editor variable to find and use an attribute value in the naming of output files for a transformation scenario.
I am using these variables/expressions/text ${cfd}/${xpath_eval(doc('${cf}')//manual/@fleet)}.pdf but it doesn't seem to work. Any advice?
Image:
https://drive.google.com/file/d/1u0F08K ... fk3We/view
Thanks!
I am trying to use the xpath_eval editor variable to find and use an attribute value in the naming of output files for a transformation scenario.
I am using these variables/expressions/text ${cfd}/${xpath_eval(doc('${cf}')//manual/@fleet)}.pdf but it doesn't seem to work. Any advice?
Image:
https://drive.google.com/file/d/1u0F08K ... fk3We/view
Thanks!
Garrett
-
- Posts: 9428
- Joined: Fri Jul 09, 2004 5:18 pm
Re: xpath eval in Transformation Scenario
Hi Garrett,
So according to our docs:
https://www.oxygenxml.com/doc/versions/ ... ables.html
meaning that it expands to a file path like:
But the XSLT doc() function needs an URL like path as a parameter like:
So I would suggest that instead of ${cf} you use ${currentFileURL}.
Also if that "manual" element is in a namespace use "*:manual" to match it with the xpath.
Regards,
Radu
So according to our docs:
https://www.oxygenxml.com/doc/versions/ ... ables.html
Code: Select all
${cf} - Current file as file path, that is the absolute file path of the currently edited document.
Code: Select all
D:\path\to\abc.xml
Code: Select all
file:/D:/path/to/abc.xml
Also if that "manual" element is in a namespace use "*:manual" to match it with the xpath.
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