Project

Profile

Help

Bug #6221

closed

Saxon 12.3: Static error in XPath expression supplied to xsl:evaluate: Cannot find a 1-argument function named Q{http://www.w3.org/2005/xpath-functions}transform()

Added by Dimitre Novatchev about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2023-10-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

This transformation:

<t>
  let $myMap := function() as map(*)
  {
  let $result := transform(
  map {
  "delivery-format" : "raw",
  "stylesheet-location" : "file:///c:/Marrowsoft/Xselerator25/identity.xsl",
  "source-node": doc("file:///c:/Marrowsoft/Xselerator25/identity.xsl"),
  
  "template-params": map{QName("", "pFilePaths"): "file:///c:/somePath"}
  }
  )
  return $result
  }
  return
  $myMap()
</t>

when applied on this XML document:

<t>
  let $myMap := function() as map(*)
  {
  let $result := transform(
  map {
  "delivery-format" : "raw",
  "stylesheet-location" : "file:///c:/Marrowsoft/Xselerator25/identity.xsl",
  "source-node": doc("file:///c:/Marrowsoft/Xselerator25/identity.xsl"),
  
  "template-params": map{QName("", "pFilePaths"): "file:///c:/somePath"}
  }
  )
  return $result
  }
  return
  $myMap()
</t>

with Saxon 12.3 (Java, EE via Oxygen and also standalone (HE))produces this error:

" Static error in XPath expression supplied to xsl:evaluate: Cannot find a 1-argument function named Q{http://www.w3.org/2005/xpath-functions}transform() ** "

Not tested with Saxon.NET but this will probably be the same there, too.

Error screenshot with 12.3

When the same transformation is applied with Saxon 11.4 no error is raised and the expected result (a map with a single key "output") is produced.

Normal  execution screenshot with 11.4


Files

clipboard-202310111340-aiqgk.png (120 KB) clipboard-202310111340-aiqgk.png Error screenshot with 12.3 Dimitre Novatchev, 2023-10-11 22:40
clipboard-202310111341-ghnsr.png (101 KB) clipboard-202310111341-ghnsr.png Normal execution screenshot with 11.4 Dimitre Novatchev, 2023-10-11 22:41
bugData.xml (389 Bytes) bugData.xml The source XML Dimitre Novatchev, 2023-10-11 22:43
bugIdentity.xsl (478 Bytes) bugIdentity.xsl The transformation Dimitre Novatchev, 2023-10-11 22:43
identity.xsl (309 Bytes) identity.xsl Referred to but probably not used Dimitre Novatchev, 2023-10-11 22:44

Please register to edit this issue

Also available in: Atom PDF