diff options
author | William Victor Mote <vmote@apache.org> | 2002-11-29 23:18:59 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2002-11-29 23:18:59 +0000 |
commit | 0438236a2c06687ddf27e63b2e020b3014dcc463 (patch) | |
tree | 1cda14fd91a2e97be7490b1994b88d2f5eda15bf /src/org/apache/fop/fonts/apps | |
parent | dbd6d2d0a69d1cab2b30efc4680177c350efc473 (diff) | |
download | xmlgraphics-fop-0438236a2c06687ddf27e63b2e020b3014dcc463.tar.gz xmlgraphics-fop-0438236a2c06687ddf27e63b2e020b3014dcc463.zip |
white-space and line-ending fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195677 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fonts/apps')
-rw-r--r-- | src/org/apache/fop/fonts/apps/FontPostProcess.xsl | 30 | ||||
-rw-r--r-- | src/org/apache/fop/fonts/apps/FontPostProcessSort.xsl | 16 |
2 files changed, 23 insertions, 23 deletions
diff --git a/src/org/apache/fop/fonts/apps/FontPostProcess.xsl b/src/org/apache/fop/fonts/apps/FontPostProcess.xsl index 120fd36a3..624df8092 100644 --- a/src/org/apache/fop/fonts/apps/FontPostProcess.xsl +++ b/src/org/apache/fop/fonts/apps/FontPostProcess.xsl @@ -4,24 +4,24 @@ <xsl:output method="xml"/> <xsl:template match="@*|node()"> - <xsl:copy> - <xsl:apply-templates select="@*|node()"/> - </xsl:copy> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> </xsl:template> <xsl:template match="widths"> - <xsl:element name="widths"> - <xsl:for-each select="char"> - <xsl:variable name="char-num" select="@ansichar"/> - <xsl:variable name="char-name" select="document('file:charlist.xml')/font-mappings/map[@win-ansi=$char-num]/@adobe-name"/> - <xsl:if test="$char-name!=''"> - <xsl:element name="char"> - <xsl:attribute name="name"><xsl:value-of select="$char-name"/></xsl:attribute> - <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute> - </xsl:element> - </xsl:if> - </xsl:for-each> - </xsl:element> + <xsl:element name="widths"> + <xsl:for-each select="char"> + <xsl:variable name="char-num" select="@ansichar"/> + <xsl:variable name="char-name" select="document('file:charlist.xml')/font-mappings/map[@win-ansi=$char-num]/@adobe-name"/> + <xsl:if test="$char-name!=''"> + <xsl:element name="char"> + <xsl:attribute name="name"><xsl:value-of select="$char-name"/></xsl:attribute> + <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute> + </xsl:element> + </xsl:if> + </xsl:for-each> + </xsl:element> </xsl:template> </xsl:stylesheet> diff --git a/src/org/apache/fop/fonts/apps/FontPostProcessSort.xsl b/src/org/apache/fop/fonts/apps/FontPostProcessSort.xsl index 63ca43408..989f66566 100644 --- a/src/org/apache/fop/fonts/apps/FontPostProcessSort.xsl +++ b/src/org/apache/fop/fonts/apps/FontPostProcessSort.xsl @@ -3,17 +3,17 @@ <xsl:output method="xml"/> <xsl:template match="@*|node()"> - <xsl:copy> - <xsl:apply-templates select="@*|node()"/> - </xsl:copy> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> </xsl:template> <xsl:template match="widths"> - <xsl:copy> - <xsl:apply-templates select="char"> - <xsl:sort select="@name" case-order="upper-first"/> - </xsl:apply-templates> - </xsl:copy> + <xsl:copy> + <xsl:apply-templates select="char"> + <xsl:sort select="@name" case-order="upper-first"/> + </xsl:apply-templates> + </xsl:copy> </xsl:template> |