| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:ot-placeholder="http://suite-sol.com/namespaces/ot-placeholder"
- extension-element-prefixes="ot-placeholder"
- version="2.0">
- <xsl:template match="ot-placeholder:glossarylist" name="createGlossary">
- <fo:page-sequence master-reference="glossary-sequence" xsl:use-attribute-sets="page-sequence.glossary">
- <xsl:call-template name="insertGlossaryStaticContents"/>
- <fo:flow flow-name="xsl-region-body">
- <fo:marker marker-class-name="current-header">
- <xsl:call-template name="getVariable">
- <xsl:with-param name="id" select="'Glossary'"/>
- </xsl:call-template>
- </fo:marker>
- <fo:block xsl:use-attribute-sets="__glossary__label" id="{$id.glossary}">
- <xsl:call-template name="getVariable">
- <xsl:with-param name="id" select="'Glossary'"/>
- </xsl:call-template>
- </fo:block>
- <xsl:apply-templates/>
- </fo:flow>
- </fo:page-sequence>
- </xsl:template>
- <xsl:template match="ot-placeholder:glossarylist//*[contains(@class, ' glossentry/glossentry ')]">
- <fo:block>
- <xsl:call-template name="commonattributes"/>
- <fo:block>
- <xsl:attribute name="id">
- <xsl:call-template name="generate-toc-id"/>
- </xsl:attribute>
- <fo:block xsl:use-attribute-sets="__glossary__term">
- <xsl:apply-templates select="*[contains(@class, ' glossentry/glossterm ')]/node()"/>
- </fo:block>
- <fo:block xsl:use-attribute-sets="__glossary__def">
- <xsl:apply-templates select="*[contains(@class, ' glossentry/glossdef ')]/node()"/>
- </fo:block>
- </fo:block>
- </fo:block>
- </xsl:template>
- </xsl:stylesheet>
|