Re: [xslt] xsl:include from other than real file?



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/
xslt gnome org
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]