Re: [xslt] Parse stylesheet from a string (in memory) instead of from a file?
- From: Liam R E Quin <liam holoweb net>
- To: The Gnome XSLT library mailing-list <xslt gnome org>, Christian Ceelen <christian ceelen gmail com>
- Subject: Re: [xslt] Parse stylesheet from a string (in memory) instead of from a file?
- Date: Thu, 18 Nov 2021 13:38:25 -0500
On Thu, 2021-11-18 at 18:34 +0000, Bloomquist, Leif via xslt wrote:
xmlDocPtr temp = xmlParseMemory(mystring, (int)strlen(mystring));
xsltStylesheetPtr xsl = xsltParseStylesheetDoc(temp);
If your stylesheet uses xsl:import or xsl:include, or your XML document
tries to include fragments using XInclude or entities, you'll also
need to write a resolver, i think.
--
Liam Quin, Paligo AB
https://www.delightfulcomputing.com/
http://www.fromoldbooks.org
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]