ancestor-or-self:: doens't work within a graphic?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 81
- Joined: Mon Mar 05, 2012 5:23 pm
ancestor-or-self:: doens't work within a graphic?
Hi,
we have a customized action to insert a <figure> element in a TEI XML document:
<figure facs="path/to/image.jpg" />
This works well and with the CSS and I can display the image.
But: I would like to allow the user to insert also a figDesc element in the figure. I created an action for that and provide the action via the context menü. I assumend that I can fire this action when I click on the image and choose the appropriate action from the context menu. But the problem seems to be that Author doesn't recognize the XPath context correctly and says "The xpath expression: 'ancestor-or-self::figure' has no result." This problem is also valid for the XPath condition for an operation (if I would like to provide this action only if a figure element is selected).
Can you reproduce this and, if yes, is there a workaround for that problem?
Thx & kind regards,
Stefan
we have a customized action to insert a <figure> element in a TEI XML document:
<figure facs="path/to/image.jpg" />
This works well and with the CSS
Code: Select all
figure:after
Code: Select all
url()
But: I would like to allow the user to insert also a figDesc element in the figure. I created an action for that and provide the action via the context menü. I assumend that I can fire this action when I click on the image and choose the appropriate action from the context menu. But the problem seems to be that Author doesn't recognize the XPath context correctly and says "The xpath expression: 'ancestor-or-self::figure' has no result." This problem is also valid for the XPath condition for an operation (if I would like to provide this action only if a figure element is selected).
Can you reproduce this and, if yes, is there a workaround for that problem?
Thx & kind regards,
Stefan
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ancestor-or-self:: doens't work within a graphic?
Hi Stefan,
Maybe that's because all TEI P5 elements are in a namespace. Have you tried ancestor-or-self::*:figure?
Regards,
Radu
Maybe that's because all TEI P5 elements are in a namespace. Have you tried ancestor-or-self::*:figure?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ancestor-or-self:: doens't work within a graphic?
Hi Stefan,
If you contact us using our support@oxygenxml.com email address and provide a small sample XML document and a screenshot from the dialog which is used to configure the Author action, we could try to provide you with more help.
Regards,
Radu
If you contact us using our support@oxygenxml.com email address and provide a small sample XML document and a screenshot from the dialog which is used to configure the Author action, we could try to provide you with more help.
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