You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
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 an xi: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
recommendedDefaults: 0.9.16
sourceRoot: /home/marin/fmpp/in
outputRoot: /home/marin/fmpp/out
dataRoot: /home/marin/fmpp/data
modes : [
ignore(/templates/)
]
data: {
# Works fine: <xi:include> elements are processed.
works: xml(music/works/bach/bwv622.xml, {'xincludeAware': true})
}
xmlRenderings: [
{
# Does NOT work: <xi:include> elements are returned as-is.
ifDocumentElementIs: release
template: templates/release.tags
xincludeAware: true
xmlns: {D: http://www.w3.org/1999/xhtml, xi: http://www.w3.org/2001/XInclude}
}
]
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.
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".
The text was updated successfully, but these errors were encountered: