(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
<xsl:stylesheet xmlns:bib="http://purl.org/NET/xbiblio/citeproc" xmlns:db="http://docbook.org/ns/docbook" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdoc="http://www.pnp-software.com/XSLTdoc" xmlns:cite="http://purl.org/NET/xbiblio/cite" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="db xdoc xs bib cite" version="2.0">
  
<xsl:preserve-space elements="bib:*" />
  
  <xdoc:doc type="stylesheet">
    
<xdoc:short>Output driver for FO. Needs to be enhanced, since I don’t know
      FO well at all.
</xdoc:short>
    
<xdoc:svnId>$Id: out-driver-fo.xsl.src.html,v 1.2 2005/11/21 22:23:53 dnw Exp $</xdoc:svnId>
  
</xdoc:doc>

  
<xsl:template match="bib:p[@class='bibref']" mode="output-fo">
    
<fo:block id="{@id}" class="bibref">
      
<xsl:apply-templates mode="output-fo" />
    
</fo:block>
  
</xsl:template>
  
<xsl:template match="bib:span" mode="output-fo">
    
<fo:inline class="{@class}">
      
<xsl:apply-templates select="@font-weight" mode="output-fo" />
      
<xsl:apply-templates select="@font-style" mode="output-fo" />
      
<xsl:apply-templates mode="output-fo" />
    
</fo:inline>
  
</xsl:template>
  
<xsl:template match="bib:a" mode="output-fo">
    
<fo:basic-link class="{@class}" internal-destination="{@href}">
      
<xsl:apply-templates select="@font-weight" mode="output-fo" />
      
<xsl:apply-templates select="@font-style" mode="output-fo" />
      
<xsl:apply-templates mode="output-fo" />
    
</fo:basic-link>
  
</xsl:template>
  
<xsl:template match="bib:span/@font-weight" mode="output-fo">
    
<xsl:attribute name="font-weight">
      
<xsl:value-of select="." />
    
</xsl:attribute>
  
</xsl:template>
  
<xsl:template match="bib:span/@font-style" mode="output-fo">
    
<xsl:attribute name="font-style">
      
<xsl:value-of select="." />
    
</xsl:attribute>
  
</xsl:template>
</xsl:stylesheet>






































v

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.