![]() |
Generate documentation from templates |
Post Reply
|
| Author | |
radup
Admin Group
Adminstrator Joined: 19 May 2008 Posts: 83 |
Post Options
Quote Reply
Topic: Generate documentation from templatesPosted: 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 support@ecrion.com.
|
|
![]() |
|
GrantDB
Newbie
Joined: 17 Aug 2010 Posts: 2 |
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: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> </fo:block-container> </xsl:if> 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'"/> </xsl:call-template> </xsl:template> 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
Grant
|
|
![]() |
|
eivindan
Newbie
Joined: 17 Nov 2010 Location: Norway Posts: 3 |
Post Options
Quote Reply
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
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum 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 |