[CITE-Forum] Exception when calling function with ampersand in argument

Janis Blank blank at supportgis.de
Thu Oct 20 03:10:53 EDT 2011

Hi all,

I hope this is the right mailing list, or is there an active developer 
list for the TEAMEngine?
I have noticed a problem with TEAMEngine 2.0b when calling a function 
with arguments that contain ampersands (&). This led to a 
SaxonAPIException issued by the call to build(src) at "NodeInfo 
paramsNode = 
core.getEngine().getBuilder().build(src).getUnderlyingNode();" in class 
com.occamlab.te.saxon.TEXSLFunctionCall. The src object containing the 
problematic parameters is build like this: Source src = new 
StreamSource(new CharArrayReader(xml.toCharArray()));.
I could overcome this problem by simply adding the line xml = 
xml.replace("&", "&"); before the construction of src.
I seem to remember though, that I already saw tests that had no problems 
with ampersands in function arguments at all. Can anybody reproduce this 
problem? Or is it just me again...



MSc. in CS Janis Blank
blank at supportgis.de


CPA Systems GmbH
Grantham-Allee 2-8
D-53757 Sankt Augustin

Tel.: +49 (0) 2241 / 25 94 – 26
Fax.: +49 (0) 2241 / 25 94 - 29


HRB 9706, Amtsgericht Siegburg


Dr.-Ing. habil. Christoph Averdung
Dr.-Ing. René Thiele
Dr.-Ing. Matthias Ellsiepen

More information about the CITE-Forum mailing list