Created
July 1, 2011 11:25
-
-
Save theresajayne/1058341 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE xsl:stylesheet | |
[ | |
<!ENTITY nbsp " "> | |
<!ENTITY bull "•"> | |
<!ENTITY tab "	"> | |
<!ENTITY oquote "“"> | |
<!ENTITY cquote "”"> | |
]> | |
<xsl:stylesheet version="1.1" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:fo="http://www.w3.org/1999/XSL/Format" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns:date="http://exslt.org/dates-and-times" | |
xmlns:fox="http://xml.apache.org/fop/extensions" | |
exclude-result-prefixes="fo"> | |
<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> | |
<xsl:template match="*[name() = 'html'] | *[name() = 'HTML']"> | |
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> | |
<fo:layout-master-set> | |
<fo:simple-page-master master-name="property" page-height="297mm" page-width="210mm" margin-top="0cm" margin-bottom="0cm" margin-left="10mm" margin-right="10mm" column-count="1" column-gap="5mm"> | |
<fo:region-body region-name="xsl-region-body" margin-top="0mm" margin-left="0mm" margin-right="10mm" margin-bottom="10mm" /> | |
</fo:simple-page-master> | |
<fo:page-sequence-master master-name="pages"> | |
<fo:repeatable-page-master-alternatives> | |
<fo:conditional-page-master-reference page-position="any" master-reference="property"/> | |
</fo:repeatable-page-master-alternatives> | |
</fo:page-sequence-master> | |
</fo:layout-master-set> | |
<!-- start the document --> | |
<xsl:call-template name="doDocument"/> | |
</fo:root> | |
</xsl:template> | |
<xsl:template name="doDocument"> | |
<fo:page-sequence master-reference="property"> | |
<fo:flow flow-name="xsl-region-body"> | |
<fo:block font-family="AkzidenzGrotesk" font-weight="normal" font-style="normal" font-size="20pt" text-align="left"> | |
This is supposed to be in AkzidenzGroteskBEExt to test the auto-detect fonts | |
</fo:block> | |
<fo:block font-family="HelveticaNeue" font-weight="black" font-style="normal" font-size="25pt" text-align="left"> | |
This is supposed to be in HelveticaNeueBlack to test the auto-detect fonts | |
</fo:block> | |
<fo:block font-family="Frutiger" font-weight="200" font-style="normal" font-size="15pt" text-align="left"> | |
This is supposed to be in Frutiger Normal to test the auto-detect fonts | |
</fo:block> | |
<fo:block font-family="Brush" font-weight="normal" font-style="normal" font-size="35pt" text-align="left"> | |
This is supposed to be in Brush Script to test the auto-detect fonts | |
</fo:block> | |
<fo:block font-family="Wingdings" font-weight="normal" font-style="normal" font-size="40pt" text-align="left"> | |
This is supposed to be in Webdings to test the auto-detect fonts | |
</fo:block> | |
</fo:flow> | |
</fo:page-sequence> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment