RE: [xslt] small patch for xsltFreeStylePreComps()
- From: "Buchcik, Kasimier" <k buchcik 4commerce de>
- To: "The Gnome XSLT library mailing-list" <xslt gnome org>
- Cc:
- Subject: RE: [xslt] small patch for xsltFreeStylePreComps()
- Date: Mon, 8 May 2006 17:00:01 +0200
Hi,
> -----Original Message-----
> From: xslt-bounces gnome org [mailto:xslt-bounces gnome org]
> On Behalf Of Aleksey Sanin
>
> > Ah, I now hope to understand what you were actually doing. Is the
> > following correct?
> > 1) you detached the style->doc from the stylesheet
> > 2) you called xsltFreeStylePreComps() (with the psvi cleanup)
> > explicitely
> > 3) you set style->preComps to NULL
> > 3) at last you freed the stylehssheet
>
> Yes :)
>
> > So I can only defer back to Daniel :-)
>
> Yes, I can see this to become a support nightmare too :) Thanks
> for your help! I'll probably just hack it in my build. I agree,
> this is not the API one want to expose to the users :)
OK.
If you do this on your side, then don't spend too much time on the
xsltRestoreDocumentNamespaces() and xsltNsMap thingy; it is just
an experiment: I never liked the processor to call xmlStrEqual()
massively for comparison of namespace names. Although this now reduces
string comparison to pointer-comparison (it feels so delighful silent
now),
I'm still not sure if it's robust enough in the big picture; so we might
remove this in the end. I think, I'll just IFDEF this with an other
define,
so that the refactored code can be used independently.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]