Using ${answer} with xpath_eval
Oxygen general issues.
-
- Posts: 11
- Joined: Sat Feb 25, 2017 1:18 am
Using ${answer} with xpath_eval
Hi there,
In a document template, I prompt the user for their id value using the ${ask} editor variable like so:
Which works perfectly well. However, when I try to use that value within an xpath_eval, it fails:
The '${people}' editor variables works fine as does (doc('../people.xml')), but the answer does not. I've tried escaping with multiple quotation marks and I've tried casting the answer to a string using another embedded xpath_eval (a long shot, but thought it might be worth it), but no luck. Is this something that can be done?
Thanks!
Best,
Joey
In a document template, I prompt the user for their id value using the ${ask} editor variable like so:
Code: Select all
<name ref="pers:${ask('Your xml:id', String,'', @user_id)}">
Code: Select all
${xpath_eval(doc('${people}')//*:person[@xml:id='${answer(@user_id)}']/*:persName/text())}
Thanks!
Best,
Joey
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Using ${answer} with xpath_eval
Post by sorin_carbunaru »
Hello Joey,
Unfortunately there seems to be a bug in oXygen when using ${xpath_eval} in templates. I created a new issue on our side (EXM-42892 - for reference purposes), and we will update this thread when a fix will be available.
All the best wishes,
Sorin Carbunaru
oXygen XML
Unfortunately there seems to be a bug in oXygen when using ${xpath_eval} in templates. I created a new issue on our side (EXM-42892 - for reference purposes), and we will update this thread when a fix will be available.
All the best wishes,
Sorin Carbunaru
oXygen XML
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Using ${answer} with xpath_eval
Post by sorin_carbunaru »
Hello,
oXygen 21.1 has just been released a few hours ago, and it contains a fix for the problem you reported.
Best wishes,
Sorin Carbunaru
oXygen XML
oXygen 21.1 has just been released a few hours ago, and it contains a fix for the problem you reported.
Best wishes,
Sorin Carbunaru
oXygen XML
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