Issue with indexterms with keywords
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 47
- Joined: Thu Aug 27, 2015 9:28 pm
Issue with indexterms with keywords
Hi,
I am trying to figure out why indexterms with keywords are not displaying correct in webhelp responsive output.
The generated index is:
Web Server
But it should be
Java installing on Web Server
I tested OOB HTML5 transformation and it generates the index term correctly.
Thanks
Arron
I am trying to figure out why indexterms with keywords are not displaying correct in webhelp responsive output.
Code: Select all
<indexterm ixia_locid="991" class="- topic/indexterm ">Java installing on <keyword ixia_locid="235" keyref="CWP" class="- topic/keyword ">Web Server</keyword></indexterm>
Web Server
But it should be
Java installing on Web Server
I tested OOB HTML5 transformation and it generates the index term correctly.
Thanks
Arron
-
- Posts: 47
- Joined: Thu Aug 27, 2015 9:28 pm
Re: Issue with indexterms with keywords
Doing some testing I found what I think is the issue in the sxtractIndexterms.xsl file.
It looks like the issue is in the keyword if, instead of selecting just the key word element text it should be normalize-space(string-join(node(), ' ')).
Code: Select all
<xsl:template match="*[contains(@class, ' topic/indexterm ')]">
<term
xmlns="http://www.oxygenxml.com/ns/webhelp/index"
name="{normalize-space(string-join(text(), ' '))}"
sort-as="{normalize-space(string-join(text(), ' '))}">
<xsl:if test="*[contains(@class, ' topic/keyword ')]">
<xsl:attribute name="name">
<!--IPTS-1428 -->
<xsl:value-of select="normalize-space(string-join(node(), ' '))"/>
</xsl:attribute>
<xsl:attribute name="sort-as">
<xsl:value-of select="*[contains(@class, ' topic/keyword ')]"/>
</xsl:attribute>
</xsl:if>
...
</template>
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Issue with indexterms with keywords
Post by radu_pisoi »
Hi,
Thank you for reporting this issue.
Indeed, the issue is related with the code indicated by you.
We have resolved it and a fix will be included in the next WebHelp version.
Thank you for reporting this issue.
Indeed, the issue is related with the code indicated by you.
We have resolved it and a fix will be included in the next WebHelp version.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
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