I've got a process that is applying a stylesheet to an XML document, and
the process needs to set a parameter in the stylesheet. What I'm having
trouble with, currently, is that the parameter might have reserved
characters in it (I'm currently struggling with '). Now I want the
parameter to be something I can display in an unescaped format once the
transformation is done.

Currently, as soon as I pass the parameter, I'm getting this from Xalan:

PlatformSupport/DOMStringHelper.cpp:523: void substring(const
XalanDOMString&, XalanDOMString&, unsigned int, unsigned int): Assertion
`theStartIndex + theLength <= theStringLength' failed.

This seems to be happening as soon as the parameter is set (or the
attempt is made to set the parameter), as I've removed all references to
the parameter from the stylesheet just to see whether I could
successfully set it.

Is there any way to pass an unescaped parameter with reserved characters
to a stylesheet? Or is there a way of escaping it before setting it and
then unescaping it during the transformation process?

Thanks!

-tfo

Reply via email to