Categories
- All Categories
- 85 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14.1K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 48 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations Gallery
- 2 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
BI Publisher import sub template
Summary
BI Publisher import sub template
Content
Hi All
I am testing a subtemplate functionality in BI Pub Desktop using MS WORD 2016
I have 1 main rtf and 1 subtemplate rtf
main.rtf contains:
<?import:file:C:///subtemplate/Subtemplate1.rtf?>
<?call-template:subtemplate1?>
and Subtemplate1.rtf contains: - this resides in my local desktop C:\subtemplate\Subtemplate1.rtf
<?template:subtemplate1?>
Subtemplate testing 1
<?end template?>
Whenever i preview the main.rtf i get this error below and not sure what is the cause: can anyone tell what is missing in this approach?
FOProcessor setLocale: en-us
oracle.xdo.XDOException: java.util.EmptyStackException
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1300)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:308)
at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:2105)
at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1208)
at RTF2PDF2.runRTFto(RTF2PDF2.java:484)
at RTF2PDF2.runXDO(RTF2PDF2.java:343)
at RTF2PDF2.main(RTF2PDF2.java:235)
Caused by: java.util.EmptyStackException
at oracle.xdo11g.xslt.XSLProcessor.reportException(XSLProcessor.java:965)
at oracle.xdo11g.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:725)
at oracle.xdo11g.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:391)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:946)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:683)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:377)
at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:238)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1276)
... 6 more
Answers
-
Hi,
Try these instead:
<?import:xdoxsl:///subtemplate/Subtemplate1.xsb?>
<?call:subtemplate1?>
Let me know if that works
Regards,
Youssef
0 -
Hi
I think your import statement is not quite correct. It should be:
<?import:file:///C:/subtemplate/Subtemplate1.rtf?>
Note the different placement of the slashes.
Youssef's suggestion will be correct once you deploy the template to the server,
Tim
0 -
What's the error?
Also, can you share your template and XML file?
Regards,
Youssef
0 -
Thanks for the suggestion Tim,
After applying the import statement above, i still get the error when previewing it in PDF. any other suggestions would be helpful. Thanks
Kent
0