W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2004

Re: Symbols

From: jaideep telang <jaideeptelang@rediffmail.com>
Date: 12 Oct 2004 09:43:40 -0000
Message-ID: <20041012094340.25690.qmail@webmail8.rediffmail.com>
To: www-xsl-fo@w3.org
Hi,

         In template for checkbox just use <fo:inline font-family="ZapfDingbats">&#x2714;</fo:inline> in place of “x”.

 Example:
--------------------------------------

<xsl:template name="checkedBox">

     <fo:table table-layout="fixed">

       <fo:table-column column-width="8pt"/>

       <fo:table-column column-width="8pt"/>

       <fo:table-column column-width="8pt"/>

       <fo:table-body>

         <fo:table-row>

           <fo:table-cell/>

           <fo:table-cell display-align="center" 

             padding="0pt">

             <fo:block font-family="sans-serif" 

               font-size="8pt" 

               font-weight="normal" 

               text-align="center"

               border="0.5pt solid black"><fo:inline font-family="ZapfDingbats">&#x2714;</fo:inline></fo:block>

           </fo:table-cell>

         </fo:table-row>

       </fo:table-body>

     </fo:table>

   </xsl:template>

 

This will print check mark inside checkbox.

 

 
thanks

jaideep telang






Received on Tuesday, 12 October 2004 10:09:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT