[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Legal Notice
Bob, Thank you so much for your wonderful suggestions - Regards, Sarah -----Original Message----- From: Bob Stayton [mailto:bobs@sagehill.net] Sent: Wednesday, April 13, 2005 9:55 PM To: SIRIGINA Saraswathi; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] Legal Notice This customization will add a legal notice link to the user footer. It doesn't remove it from the titlepage, because that template actually generates the separate legalnotice file. The template here just generates a link in the user footer to that file. It generates the filename with the same expression used by the main legalnotice link. The process that generates that filename could be a separate template. <xsl:param name="generate.legalnotice.link">1</xsl:param> <xsl:template name="user.footer.content"> <xsl:apply-templates select="/book/bookinfo/legalnotice[1]" mode="footer.link"/> </xsl:template> <xsl:template match="legalnotice" mode="footer.link"> <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <xsl:if test="$generate.legalnotice.link != 0"> <xsl:variable name="filename"> <xsl:value-of select="concat('ln-',$id,$html.ext)"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <a href="{$filename}"> <xsl:copy-of select="$title"/> </a> </xsl:if> </xsl:template> This has some limitations. It doesn't take into account any dbhtml 'dir' processing instructions, for example. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "SIRIGINA Saraswathi" <SSirigina@COVANSYS.COM> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, April 12, 2005 11:12 PM Subject: [docbook-apps] Legal Notice Hi, Can anyone please let me know if I can move the Legal Notice link to the Footer section as a hyperlink. (separate Legal Notice). Right now the Hyperlink appears after the Copyright. Thanks & regards, Sarah Confidentiality Statement:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]