Re: [xslt] Starting Over - No user context available when apply stylesheet loads an external entity



On Fri, Nov 18, 2005 at 09:00:40AM -0800, Rush Manbert wrote:
> Thanks for the reply Daniel. The problem that I see is that there are 
> four (in 1.1.14 ) callers to the xslt loader function, and they pass 
> different things as the "ctxt" argument to the loader:
> 
> xslt.c:      xsltParseStylesheetFile()   passes NULL
> imports.c:   xsltParseStylesheetImport() passes xsltStylesheetPtr
>              xsltLoadStyleDocument()     passes xsltStylesheetPtr

  during stylesheet compilation

> documents.c: xsltLoadDocument()          passes xsltTransformContextPtr

  at transformation time.

> Backtracking, I find that xsltParseStylesheetFile() is called from 
> xsltLoadStylesheetPI(), which is passed a xmlDocPtr. I stopped there 
> because it's pretty clear that getting user context propagated through 
> all of the possible paths is a big job, and I've got a deliverable 
> deadline looming.
> 
> When (and "if", if I'm going to be honest) I do get time to pursue this, 
> I assume you only want patches against the current CVS?

  preferably, yes

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
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]