Path of topic nodes inside the DITA MAPS manager
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Feb 28, 2020 4:02 pm
Path of topic nodes inside the DITA MAPS manager
Post by vishwavaranasi »
Hello Team ,
is there any API to get the local path of the topic nodes inside the DITA MAPS manager?
for example , i see the below
AuthorNode[] selectedNodes = ditaMapEditorPage.getSelectedNodes(true);
and i wanted the secetedNodes -local path , for example , if i selected topic "Reload Service Name " from below , how to get the local path or how can i read the properties or any API how to retrieve the same using API?
vishwa
is there any API to get the local path of the topic nodes inside the DITA MAPS manager?
for example , i see the below
AuthorNode[] selectedNodes = ditaMapEditorPage.getSelectedNodes(true);
and i wanted the secetedNodes -local path , for example , if i selected topic "Reload Service Name " from below , how to get the local path or how can i read the properties or any API how to retrieve the same using API?
image.png
Thanks,vishwa
You do not have the required permissions to view the files attached to this post.
Thanks,
vishwa
vishwa
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Path of topic nodes inside the DITA MAPS manager
Hi,
To get the URLs of the selected nodes you could use directly the API "WSDITAMapEditorPage.getCurrentSelectedURLs(boolean, boolean)".
Other than that, if you use the "ditaMapEditorPage.getSelectedNodes(true);" API, for each AuthorNode you can do something like:
Regards,
Radu
To get the URLs of the selected nodes you could use directly the API "WSDITAMapEditorPage.getCurrentSelectedURLs(boolean, boolean)".
Other than that, if you use the "ditaMapEditorPage.getSelectedNodes(true);" API, for each AuthorNode you can do something like:
Code: Select all
AuthorNode sel = selectedNodes[0];
if(sel instanceof ro.sync.ecss.extensions.api.node.AuthorElement) {
AuthorElement selElement = (AuthorElement) sel;
AttrValue hrefAttrValue = selElement.getAttribute("href");
if(hrefAttrValue != null) {
//The value of the "href" attribute
String href = hrefAttrValue.getValue();
//The base URL in which the topicref exists.
URL base = selElement.getXMLBaseURL();
//From these two you can compute the absolute referenced path.
}
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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