For Saxon 7.0 and beyond, the namespace declaration needs to be
Michael Kay

From: [] On Behalf Of Peter PR. Röcker
Sent: 06 October 2004 15:56
Subject: AW: [saxon] problem with extension instruction <saxon:call-template>

Thank you for your fast response,


I declared “saxon” in extension-element-prefixes. But you’re right, it’s more useful to look in a small sample for the bug then understanding my explanations. So I created a small example. You’ll find it as attachment.


I used the command line to transform the file in html with such command:


Java –jar saxon8.jar –o test.html books.xml transform.xsl


best regards

Peter Röcker



Von: [] Im Auftrag von Michael Kay
Gesendet: Mittwoch, 6. Oktober 2004 15:50
Betreff: RE: [saxon] problem with extension instruction <saxon:call-template>


This works for me (despite the fact that it wasn't covered by any of my test cases - now remedied!).


Did you remember to declare "saxon" in extension-element-prefixes?


It's always useful to supply a small sample stylesheet with a problem report - it's easier to debug stylesheets when you can see them!


Michael Kay


From: [] On Behalf Of Peter PR. Röcker
Sent: 06 October 2004 13:33
Subject: [saxon] problem with extension instruction <saxon:call-template>

Hello all.


I’ve got a problem with Saxon 8.0b in using the extension instruction “<saxon:call-template>”.


I need it, because the template name is decided during run-time. But I need also parameters by calling the template.

So when I use “<xsl:with-param name…./>”  an error occurs:

“xsl:with-param cannot appear as a child of saxon:call-template”


If I change it to “<saxon:with-param name…./>”  another error occurs:

“Unknown extension element”


What can I do to solve my problem ?


Best regards

Peter Röcker