[xslt] Use of " in stylesheet params



I am trying to pass a string containing a 
double quote as a style sheet parameter
when calling xsltApplyStylesheet.

I know that libxslt treats a parameter as
an XPath expression so that the string
must be quoted using ' or ".  Both work,
unless, of course, the string contains
the quoting character.  If I code:

      param[0]="alpha";
      param[1]="\" this is a double &quotl quote\"";
      param[2]= NULL;

I get " in the output, not ".  What magic
call do I need to make to fix this ?

Tom Moog








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]