Error while searching for text in the topic title
Posted: Fri Dec 17, 2021 2:29 pm
I use:
oXygen XML Editor 22.1, build 2020100710
transformation scenario - DITA Map PDF - based on XSL-FO
customization directory - according to oXygen's instructions.
Via custom.xsl I'm looking for topics that have equation.
Then I look for titles of such topics.
Among them, I'm looking for titles that start with "Appendix".
But i'm getting an error in oXygen: A sequence of more than one item is not allowed as the first argument of starts-with() ("", "").
How to fix it?
Thanks in advance!
oXygen XML Editor 22.1, build 2020100710
transformation scenario - DITA Map PDF - based on XSL-FO
customization directory - according to oXygen's instructions.
Via custom.xsl I'm looking for topics that have equation.
Then I look for titles of such topics.
Among them, I'm looking for titles that start with "Appendix".
But i'm getting an error in oXygen: A sequence of more than one item is not allowed as the first argument of starts-with() ("", "").
How to fix it?
Thanks in advance!
Code: Select all
<xsl:template match="*[contains(@class, ' equation-d/equation-block ')]">
<xsl:variable name="title" select="ancestor::concept/title"/>
<xsl:if test="$title= starts-with(text(), 'Appendix')">
...
</xsl:if>
</xsl:template>