On Wed, 2003-07-16 at 14:56, [EMAIL PROTECTED] wrote:
> OK, the assert is fixed now, so you'll get a proper error about an invalid
> expression.

Well, that's good news.

> This might best be done with an extension function.  In the Xalan 1.7
> release, we should have an extension function that does this built into the
> processor.

Based on what you say later, I'm not sure it's going to matter.

> There's no syntax limitation here that's unique to Xalan or any other XSLT
> processor.  A param in Xalan-C++ is an XPath expression, so, if you want a
> string literal, you have to provide one.  The limitation that a string
> literal delimited by a ' cannot contain a ' as a character, and the
> analogous case with " is a limitation of XPath 1.0.  XPath 2.0 has a
> mechanism to handle these cases.

Well, that's my real problem, then: the XPath 1.0 definition of a string
literal. Is there a standard practice solution to passing a parameter
that contains a '?

> I don't understand what you're saying here.  I don't have a copy of "The
> XSL Companion," and I don't know what templates would have to do with it.
> Again, a concrete example would help.

Sorry. The XSL Companion is one of my favorite XSL references:

http://www.aw-bc.com/catalog/academic/product/0,4096,0201770830,00.html

I couldn't find source examples anywhere, but there's a subsection
called "Escaping significant characters" in which Bradley provides a
"String replacement template" that basically does what its name implies.
And I'm sure there are other, similar extension functions, but if I
can't even get the parameter to the stylesheet in the correct format, it
doesn't really matter.

Unless I can escape it prior to passing it to the stylesheet and then
replace it via the stylesheet once it's there...

Anyway, I guess this is more of an XSL question now, eh?

Thanks for the feedback!

-tfo 

Reply via email to