[xep-support] rounded rectangle
Mark Cilia Vincenti
mciliavincenti at gfi.com
Tue Feb 26 02:33:15 PST 2008
Sorry if I sent this multiple times, but my mail client seems to be
broken.
Here's my implementation.
<xsl:template name="redbox">
<xsl:param name="text" />
<fo:table space-after.optimum="10pt">
<fo:table-column column-width="1.2mm" />
<fo:table-column />
<fo:table-column column-width="1.2mm" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block
line-height="0pt">
<fo:instream-foreign-object width="1.2mm" height="1.2mm"
content-width="scale-to-fit" content-height="scale-to-fit"
scaling="uniform">
<svg width="1.2mm" height="1.2mm" viewBox="0 0 400 400" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M400,400 v-400 a400,400 0 0,0 -400,400 z" fill="#CC0000"
stroke="#CC0000" stroke-width="1" />
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
<fo:table-cell
line-height="0pt" background-color="#CC0000" />
<fo:table-cell>
<fo:block
line-height="0pt">
<fo:instream-foreign-object width="1.2mm" height="1.2mm"
content-width="scale-to-fit" content-height="scale-to-fit"
scaling="uniform">
<svg width="1.2mm" height="1.2mm" viewBox="0 0 400 400" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M0,400 v-400 a400,400 0 0,1 400,400 z" fill="#CC0000"
stroke="#CC0000" stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row
background-color="#CC0000">
<fo:table-cell />
<fo:table-cell>
<fo:block
color="#FFFFFF" font-size="10pt" font-weight="bold"
font-family="Helvetica"><xsl:value-of select="$text" /></fo:block>
</fo:table-cell>
<fo:table-cell />
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block
line-height="0pt">
<fo:instream-foreign-object width="1.2mm" height="1.2mm"
content-width="scale-to-fit" content-height="scale-to-fit"
scaling="uniform">
<svg width="1.2mm" height="1.2mm" viewBox="0 0 400 400" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M0,0 a400,400 0 0,0 400,400 v-400 z" fill="#CC0000"
stroke="#CC0000" stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
<fo:table-cell
line-height="0pt" background-color="#CC0000" />
<fo:table-cell>
<fo:block
line-height="0pt">
<fo:instream-foreign-object width="1.2mm" height="1.2mm"
content-width="scale-to-fit" content-height="scale-to-fit"
scaling="uniform">
<svg width="1.2mm" height="1.2mm" viewBox="0 0 400 400" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M0,0 h400 a400,400 0 0,1 -400,400 z" fill="#CC0000"
stroke="#CC0000" stroke-width="1"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
Best Regards,
Mark Cilia Vincenti - Internal Developer - Marketing
GFI Software - www.gfi.com
DISCLAIMER
The information contained in this electronic mail may be confidential or
legally privileged. It is for the intended recipient(s) only. Should you
receive this message in error, please notify the sender by replying to
this mail. Unless expressly stated, opinions in this message are those
of the individual sender and not of GFI. Unauthorized use of the
contents is strictly prohibited. While all care has been taken, GFI is
not responsible for the integrity of the contents of this electronic
mail and any attachments included within.
This mail was checked for viruses by GFI MailSecurity.
GFI also develops anti-spam software (GFI MailEssentials), a fax server (GFI FAXmaker), and network security and management software (GFI LANguard) - www.gfi.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
More information about the Xep-support
mailing list