Re: [xslt] one more time...but a solution -> single quot in param
- From: Thomas Broyer <tbroyer ltgt net>
- To: xslt gnome org
- Subject: Re: [xslt] one more time...but a solution -> single quot in param
- Date: Fri, 5 Oct 2001 19:07:07 +0200
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]