Re: [xslt] Files included using xsl:include



On Wed, May 18, 2005 at 03:57:26PM +0530, Raghunath Adhyapak wrote:
> Hello all,
> 
> I have loaded three XSL files a.xsl, b.xsl, c.xsl into memory using
> xmlParseMemory.
> 
> Now I have d.xsl file which includes all/some of the above xsl files
> using xsl:include tag.
> 
> I have 3 questions
> a) How do I know the files included in d.xsl? Is there any api to do that?

  there is no API, this is internal XSLT processing.

> b) libxslt API's directly loads the included xsl files. Can I control
> libxslt and return the pointers that I have maintained?

  see the entity loader of libxml2
  http://xmlsoft.org/html/libxml-parser.html#xmlSetExternalEntityLoader
  or the specific one for libxslt
  http://xmlsoft.org/XSLT/html/libxslt-documents.html#xsltSetLoaderFunc

> c) Will the same principle apply for xsl:import also?

  yes.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team 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]