In my *.xsl-fo.ftl the <fo:root/>
is marked red like the below. How do I configure xsd for this file?
@michael Hi Michael, this is my bref code
<screen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/xml-screen-2.1.xsd"
default-menu-include="false" standalone="true">
<widgets>
<render-mode>
<text type="xsl-fo" location="component://iam-einvoice/template/invoice/InvoiceTemplate.xsl-fo.ftl" template="true" encode="false" no-boundary-comment="true"/>
</render-mode>
</widgets>
</screen>
And InvoiceTemplate.xsl-fo.ftl
file like this:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
font-family="ArialUni, ArialUniBold, ArialUniItalic" font-size="10pt">
.....
</fo:root>
I believe there isn’t an xsl-fo xsd document already in the moqui-fop
repository, so following this guide would be the way to do this.
If you figure out a solution to this, feel free to create a PR to add the xsd document.
1 Like