Skip to content

XSLT profile resolver does not work with Saxon version 11 #1629

@galtm

Description

@galtm

Describe the bug

The XSLT profile resolver errors out with Saxon version 11. See the comments in #1596 .

Who is the bug affecting

Users of the XSLT profile resolver who want to use version 11 or later of the Saxon XSLT engine.

What is affected by this bug

Tooling & API

How do we replicate this issue

java -cp path-to-saxon/saxon-he-12.0.jar net.sf.saxon.Transform -xsl:oscal-profile-RESOLVE.xsl -s:path-to-profile.xml -o:resolved-catalog.xml

Error message:

Type error at char 50 in expression in xsl:variable/@select on line 49 column 89 of oscal-profile-resolve-metadata.xsl:
  XTTE0570  An empty sequence is not allowed as the value of variable $source-profile
at variable source-profile on line 49 column 89 of oscal-profile-resolve-metadata.xsl

Expected behavior (i.e. solution)

Command should produce a catalog file, resolved-catalog.xml

Other comments

Works with Saxon 10 but not 11 or 12. See https://saxonica.plan.io/issues/5339 for information about changes in document-uri function in Saxon 11.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions