Re: [xslt] Parse stylesheet from a string (in memory) instead of from a file?



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]