Open MarinBernard opened 5 years ago
Indeed, xincludeAware
had no effect inside xmlRenderings
. I have fixed this in commit https://github.com/freemarker/fmpp/commit/adfe51f7916dbebb5b2bc15ee478d2f407580743.
Hi,
Many thanks for adding this feature. For your information I noticed that xincludeAware
was also ineffective when passed as a parameter of pp.loadData
. XML data are loaded but XInclude elements are left unprocessed.
Many thanks. I'll try to build 9.1.17 and see what happens.
Are you sure about pp.loadData
? Looking at the source code, I don't think it ignores the { 'xincludeAware': true }
argument you pass to it.
Hi,
I'm new to FMPP and I'm trying to have it render a single XML document to a very basic one-liner text file. Templating does work as expected, except regarding the XInclude feature: I can't make FMPP apply the transclusion. In the called template, browsing the DOM with
pp.doc
returns anxi:include
element instead of the target one.XInclude does work when used with static XML data sources (defined in the main config file), but not with dynamic XML rendering. I use the latest version. What did I forget ?
Config file
Source XML file
Template
Output
Instead of the the root element from "/home/marin/fmpp/data/music/works/bach/bwv622.xml".