Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Designer > Generic Support
  New Posts New Posts RSS Feed: Generate documentation from templates
  FAQ FAQ  Forum Search   Register Register  Login Login

Forum LockedGenerate documentation from templates

 Post Reply Post Reply
Message / View First Unread Post
eivindan View Drop Down

Joined: 17 Nov 2010
Location: Norway
Posts: 3
Post Options Post Options   Quote eivindan Quote  Post ReplyReply Direct Link To This Post Topic: Generate documentation from templates
    Posted: 05 Jan 2012 at 10:23am
We have a lot of XF Designer templates that has condtional blocks and various rules. Now we are looking for a way to document this.

Would it be possible to use XF Designer to add "comments" that are not shown in normal rendering, but in some way can be shown/extracted later? Maybe like javadoc, but for XF Designer temlates...

Eivind Løland-Andersen 
Back to Top
GrantDB View Drop Down

Joined: 17 Aug 2010
Posts: 2
Post Options Post Options   Quote GrantDB Quote  Post ReplyReply Direct Link To This Post Posted: 16 Jan 2012 at 12:25pm
I know this is an old post, but hopefully this may help someone
When I wanted to do something like that I do this.  Create a template that formats the annotation (note the condition as to whether to render the annotation or not)
<xsl:template name="hcannotate">
 <xsl:param name="annotation.type"/>
 <xsl:param name="VARannotationText"/>
 <xsl:if test="/forrendering/alltemplates/stylesmode/text() = 'true'">
  <fo:block-container position="absolute" text-align="right" z-index="10" left="30mm" width="90%" height="auto">
   <fo:block color="red" font="8pt"><xsl:value-of select="$annotation.type"/>:<xsl:value-of select="$VARannotationText"/></fo:block>
Then call it like this
              <xsl:call-template name="hcannotate">
               <xsl:with-param name="annotation.type" select="'style'"/>
               <xsl:with-param name="VARannotationText" select="'bodytext3'"/>
So if I set /forrendering/alltemplates/stylesmode/text() to true I get lots of red text in my PDF, if I set it to false nothing appears.
It worked pretty well
Back to Top
radup View Drop Down
Admin Group
Admin Group

Joined: 19 May 2008
Posts: 90
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jan 2012 at 10:13am
Hi eivindan,

I'm afraid is not possible, but we can implement it as custom development. If you are interested please send us an email to
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.109 seconds.