Re: [xslt] Use of " in stylesheet params



On Sat, Aug 18, 2001 at 12:49:49AM -0500, Tom Moog wrote:
> 
> I am trying to pass a string containing a 
> double quote as a style sheet parameter
> when calling xsltApplyStylesheet.

  What about:

   param[1]="' this is a double \" quote'";

   first " is interpreted by C compiler
   the  ' is a xslt string delimiter
   the \" will be replaced by the C compiler into just "
 
 " won't be handled as an XML entity reference since I don't
try to parse parameter strings as an XML chunk but as an UTF8 string
(it should be an xmlChar *).

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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