Project

Profile

Help

Expected external object of class java.net.URL, got class net.sf.saxon.value.AnyURIValue

Added by T Hata almost 6 years ago

This XSLT



	
	
		
		
			
		
	

works on command line:

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test.xsl
Saxon-EE 9.8.0.12J from Saxonica
Java version 1.8.0_171
Using license serial number V......
...
jar
...

But once exported, it doesn't work:

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test.xsl -nogo -export:test.sef
...
Stylesheet exported to: test.sef

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test.sef
...
Error on line 14 of test.xsl:
  Expected external object of class java.net.URL, got class net.sf.saxon.value.AnyURIValue

What tweak is required to get it work on SEF?


Replies (3)

Please register to reply

RE: Expected external object of class java.net.URL, got class net.sf.saxon.value.AnyURIValue - Added by T Hata almost 6 years ago

And this one:



	
	
		
		
			
		
	

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test2.xsl
...
1
...

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test2.xsl -nogo -export:test2.sef
...
Stylesheet exported to: test2.sef

C:\test>java -jar saxon9ee.jar -it:main -t -xsl:test2.sef
...
Error on line 10 of test2.xsl:
  Expected external object of class java.math.BigInteger, got class net.sf.saxon.value.Int64Value
    (1-3/3)

    Please register to reply