Re: [xslt] one more time...but a solution -> single quot in param



Le 2001.10.05 14:06, Tom Moog a écrit :
> Almost.  If your literal contains both single and double
> quotes:
> 
>    Shakespeare's "Twelfth Night"
> 
> then you need to bypass the standard mechanism for
> passing parameters used by xsltproc.

AFAIK, xsltproc takes XPath expressions as parameters' values. An XPath
literal cannot contain both " and ', you have to use concat(). The XPath
expression would be:
  concat("Shakespeare's ", '"Twelfth Night"')
then you escape for the shell:
  "concat(\"Shakespeare's \", '\"Twelfth Night\"')"

Tom.




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