> > 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 '?

Yes, you use the " character to delimit the literal:

   "This is a string literal with a ' character in it."

and:

   'This is a string literal with a " character in it.'

What you can't do is have a string literal with both a " and ' character,
since one must be used as the delimiter.

Dave

Reply via email to