Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BI Publisher: Calling a subtemplate - Need correct syntax to avoid unwanted extra lines

Mark.ThompsonMar 10 2017 — edited Mar 10 2017

I am creating a BI Publisher template in Word. Is there a way to avoid generating extra blank rows in the main template when calling a SubTemplate?

Here is my initial template:

2017-03-10_10-42-39.png

Here are the contents of the fields:

2017-03-10_10-43-07.png

Here is the output - so far, so good:

2017-03-10_10-43-26.png

Now instead of populating the three variables inside of the template, I want to put them into a SubTemplate located at c:\VarTemplate.rtf.

Here is my revised template:

2017-03-10_10-44-02.png

Here are the field contents. Notice the change: the call to the SetVars subtemplate.

2017-03-10_10-45-08.png

Here is the code for the SetVars subtemplate. Notice that it is identical to the code that was initially in the SetVars field in the main template.

<?xdoxslt:set_variable($_XDOCTX,'AA',1)?>

<?xdoxslt:set_variable($_XDOCTX,'BB',1)?>

<?xdoxslt:set_variable($_XDOCTX,'CC',1)?>

Here are the results:

2017-03-10_10-46-37.png

So, performing the exact same actions can generate different results if those actions are performed in a subtemplate vs. in a field in the main template.

So the question: What is the correct syntax for calling a subtemplate (obviously it isn't call@inlines:) so that we avoid generating any extra blank lines? (Note: Removing all carriage returns in the subtemplate would still generate at least 1 extra unwanted row, and is not an option anyway, because the “real” code in the subtemplate is several dozen lines long, and I want the code to be readable, not all jumbled together in one big run-on string.)

Thanks!

This post has been answered by Mark.Thompson on Mar 10 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details