Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#55 Params w/ saxon:transform extension function

closed
nobody
None
5
2012-10-08
2007-12-05
crumpet75
No

See:
http://sourceforge.net/forum/forum.php?thread_id=1885013&forum_id=94027

See the attached test cases.
(Michael Kay requested I send test cases.)

See the attached test cases.

I am having a problem passing parameters to the extension function saxon:transform. Error is related to:
java.lang.NullPointerException

I have created 2 simple examples to demonstrate the problem: test1.xsl and test2.xsl

Test 1:

test1.xsl compiles transform1.xsl with the extension function saxon:compile and tries to transform a document using the compiled transform1.xsl.
I try to pass 2 simple parameters to transform1.xsl, but I receive errors. See output1.txt

test1.xsl
transform1.xsl
output1.txt

Test 1:

test2.xsl compiles transform2.xsl with the extension function saxon:compile and tries to transform a document using the compiled transform2.xsl.
I try to pass 3 simple parameters to transform2.xsl, but I receive errors. See output2.txt
Note: The third parameter contains other nodes.

test2.xsl
transform2.xsl
output2.txt

Discussion

  • Michael Kay
    Michael Kay
    2007-12-14

    Logged In: YES
    user_id=251681
    Originator: NO

    Just to repeat the answer that has been posted elsewhere, there is a documented restriction that saxon:evaluate cannot be used in compiled stylesheets.

     


Anonymous


Cancel   Add attachments