Skip to content

XSL message in a XSLT transform throws a RuntimeError #1217

@higherpixels

Description

@higherpixels
source = Nokogiri::XML(File.read monograph_filename)
xsl = Nokogiri::XSLT(File.read 'ipm.xsl' )
transformed = xsl.transform(source)

The last line throws a runtime error because the xls file contains a message

<xsl:otherwise>
  <xsl:message>Warning:  Class not handled:  <xsl:value-of select="$vDiv"/></xsl:message>
</xsl:otherwise>

So we get the error

RuntimeError: Warning:  Class not handled:  date lrvdt

Is there a way for me to suppress the warning so I don't get a runtime error?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions