Re: xsl:include from other than real file?

Peter Jentsch <[email protected]> Sun, 20 Jan 2013 12:29:23 +0100
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On 20.01.2013 11:14, Lothar wrote:
> Hi,
>
> I am thinking about embedded xslt templates or templates in databases. I have several stylesheets that include other stylesheets. Usually the are located in the file system.
> Can I change the location from a file into a memory buffer and preload this buffer into the xslt processor to use that instead the real file (preload)?
>
> Maybe using a hook to intercept the real loading process from file...
>
> Thanks, Lothar
>
> -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
> Lothar Behrens
> Ginsterweg 4
> 65760 Eschborn
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> [email protected]
> https://mail.gnome.org/mailman/listinfo/xslt
>
Hi Lothar,

you should be able to achieve this using a custom entity loader ( 
http://xmlsoft.org/xmlio.html#entities). I haven't done this with 
libxml, but with java, but it should work all the same.

HTH,

Peter

_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
https://mail.gnome.org/mailman/listinfo/xslt