David,

Thanks for the quick response.

I'm using Xalan C++ 1.4, but I'm actually using it with XML::Xalan 0.44
(with a few modifications to make it compatible with the C++ version;
it's technically compatible with 1.3). I'll move to Xalan C++ 1.5 (or
1.6, if available) when Xerces Perl has moved out of beta for 2.3.0 and
I've modified XML::Xalan again as necessary.

Upon further inspection, it looks like what I'm dealing with is a
Perl/C++ issue, not an XSL(T) issue.

What I'm basically trying to do is collect a search term from a web form
and then send both an escaped version (for URI encoding) and an
unescaped version (for display purposes) to Xalan. I figured the
escaping would be easier done in Perl.

It looks like I'm running up against the syntax limitations of the
XML::Xalan::Transformer library, which seems to require that non-numeric
parameters to stylesheets be passed between single quotation marks via
the set_stylesheet_param method.

So I'm generating that assertion, I think, when the string length is
calculated on the full string but the string is parsed only until it
hits a ', which is something I need to allow in the search.

If I'm forced to escape the ' character in Perl prior to sending a
parameter to Xalan to avoid the assertion, am I pretty much forced to do
escaping via the stylesheet using a template (a la Bradley in The XSL
Companion)?

Thanks!

-tfo

On Wed, 2003-07-16 at 13:15, [EMAIL PROTECTED] wrote:
> I believe the assert is a bug that has since been fixed.  What version of
> Xalan-C are you using?
> 
> You cannot "escape" stylesheet parameters using XML entities, if that's
> what you're trying to do.  If you're dealing with C++ escaping issues,
> that's different.  You may also be having problems because your parameters
> are XPath string literals,
> 
> Can you provide a trivial stylesheet, input document, and parameter value
> you want to set, so we can understand what you're trying to do?  Otherwise,
> I don't know what we can do to help.
> 
> Thanks!
> 
> Dave

Reply via email to