Re: [xslt] LIBXSLT file transforms.c



On Thu, Apr 26, 2001 at 12:43:10PM -0400, Gorski, Tony wrote:
> 
> I'm trying to port LIBXSLT to a Tandem computer system. My compiler gave me
> a warning on the following
> code.
> 
>      if ((ctxt->type = XSLT_OUTPUT_XML) &&
>            ((style->doctypePublic != NULL) ||
>           (style->doctypeSystem != NULL))) {
>          root = xmlDocGetRootElement(res);
>          if (root != NULL)
>              res->intSubset = xmlCreateIntSubset(res, root->name,
>                           style->doctypePublic, style->doctypeSystem);
>      }                                                  
> 
>  should the assignment be a comparison.

  Yes definitely, it was a bug :-)
I fixed it,

   thanks a lot !

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]