Re: language error in PDF transform


Radu Coravu
 

Hi Scott,

Might it be possible that in one of your DITA topics the xml:lang attribute is set to an empty value?

Regards,
Radu

Radu Coravu
Oxygen XML Editor
On 7/13/20 10:54 PM, scott ashmead via groups.io wrote:

Hi DITA users:

I'm getting the following error:

/rsuite-data/DITA-OT/xsl/common/functions.xsl:94: Fatal Error! An empty sequence is not allowed as the result of function dita-ot:get-iso-language-code()
This is the function that's failing:
    <xsl:function name="dita-ot:get-iso-language-code" as="xs:string">
        <xsl:param name="lang" as="xs:string"/>
        <xsl:sequence select="tokenize($lang, '-')[1]"/>
    </xsl:function>


I suspect the "lang" param contains an empty string. 

Does anyone know what would cause the "lang" param to be empty?

Thank you,
Scott


  

Join main@dita-users.groups.io to automatically receive all group messages.