Johan Johansson wrote:
Hi,

Thank you for your reply.

Didt do any difference for me when i added the trailing slash:

You meant "did not", I presume? ;)

The error message you show comes from FOP, not from Saxon. This means that the saxon:assign and saxon:while elements have not been interpreted as extension elements, which can mean two things:

1. you did not use Saxon (check your classpath or use system-property('xsl:vendor') ) 2. you still have an error in your namespace, which means in return that your ext. elements are interpreted as literal result elements.

Take a look at your intermediate result, i.e., the FO file, after the transformation and before the formatting. You will see that the elements saxon:assign appear as literal elements in there, which is of course wrong.

I can advice you two things:

1. Do not use extension elements, and certainly not saxon:assign and saxon:while as there is really no use in using them. Use XSLT 2.0 instead (you use Saxon, so why wouldn't you) and stay away from extensions and these in particular (other extensions can be used with some care, but I recommend against using assign/while, because they are against the basic "no-side-effect" rule of XSLT 2.0). In your stylesheet there is no reason whatsoever to use them, so you can easily get rid of them.

2. Get your stylesheet to work with Saxon and to work properly, which will remove these LREs from the result tree.


All in all, there's nothing wrong with FOP here, there's just some error in the transformation part.

Cheers,
-- Abel Braaksma

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to