Responsive Webhelp: spaces between different keyword in output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 42
- Joined: Wed Jun 20, 2018 11:30 am
Responsive Webhelp: spaces between different keyword in output
Post by pieterjan_vdw »
Hi,
I want to see my keywords in each topic page.
I managed to get them visible in my webhelp via a fragment & Oxygen macro, but can't get spaces between the different keywords in my topic.
Keywords in the DITA topic:
XHTML I currently use to get the output:
Final result in HTML:
How can I get a space between my different keywords in the HTML?
I want to see my keywords in each topic page.
I managed to get them visible in my webhelp via a fragment & Oxygen macro, but can't get spaces between the different keywords in my topic.
Keywords in the DITA topic:
Code: Select all
<keywords>
<keyword>compatibility</keyword>
<keyword>operate</keyword>
<keyword>system</keyword>
<keyword>window</keyword>
</keywords>
XHTML I currently use to get the output:
Code: Select all
<div class="keywords" xmlns:whc="http://www.oxygenxml.com/webhelp/components">
<p>Keywords: <b><whc:macro value="${topic-xpath(//keyword)}"/></b></p>
</div>
Final result in HTML:
Code: Select all
<div class="keywords">
<p>Keywords: <b>compatibilityoperatesystemwindow<whc:macro value="${topic-xpath(//keyword)}"></whc:macro> </b></p>
</div>
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Responsive Webhelp: spaces between different keyword in output
Hello,
You need to adjust your XPath expression in order to concatenate all keywords using a space as separator:
Regards,
Alin
You need to adjust your XPath expression in order to concatenate all keywords using a space as separator:
Code: Select all
<div class="keywords" xmlns:whc="http://www.oxygenxml.com/webhelp/components">
<p>Keywords: <b><whc:macro value="${topic-xpath(string-join(//keyword, ' '))}"/></b></p>
</div>
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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