Generate documentation from templates
Joined: 17 Nov 2010
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...
Joined: 17 Aug 2010
|Post Options Quote Reply 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: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: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
Joined: 19 May 2008
|Post Options Quote Reply Posted: 17 Jan 2012 at 10:13am|
I'm afraid is not possible, but we can implement it as custom development. If you are interested please send us an email to email@example.com.
|Forum Jump||Forum Permissions
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum