Re: [xslt] Use of " in stylesheet params



My choice of an example was bad.  Suppose the
string I want to pass as a parameter is:

  Join us for Shakespeare's "Twelfth Night" at 7 o'clock

so it contains both apostrophe and double quote ?


On Sat, 18 Aug 2001, Daniel Veillard wrote:

> 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 *).





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