2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4 xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
7 <!-- ********************************************************************
8 $Id: axf.xsl 6483 2007-01-08 18:00:22Z bobstayton $
9 ******************************************************************** -->
11 <xsl:template name="axf-document-information">
13 <xsl:variable name="authors" select="(//author|//editor|
14 //corpauthor|//authorgroup)[1]"/>
15 <xsl:if test="$authors">
16 <xsl:variable name="author">
18 <xsl:when test="$authors[self::authorgroup]">
19 <xsl:call-template name="person.name.list">
20 <xsl:with-param name="person.list"
21 select="$authors/*[self::author|self::corpauthor|
22 self::othercredit|self::editor]"/>
25 <xsl:when test="$authors[self::corpauthor]">
26 <xsl:value-of select="$authors"/>
29 <xsl:call-template name="person.name">
30 <xsl:with-param name="node" select="$authors"/>
36 <xsl:element name="axf:document-info">
37 <xsl:attribute name="name">author</xsl:attribute>
38 <xsl:attribute name="value">
39 <xsl:value-of select="normalize-space($author)"/>
44 <xsl:variable name="title">
45 <xsl:apply-templates select="/*[1]" mode="label.markup"/>
46 <xsl:apply-templates select="/*[1]" mode="title.markup"/>
49 <!-- * see bug report #1465301 - mzjn -->
50 <axf:document-info name="title">
51 <xsl:attribute name="value">
52 <xsl:value-of select="normalize-space($title)"/>
56 <xsl:if test="//keyword">
57 <xsl:element name="axf:document-info">
58 <xsl:attribute name="name">keywords</xsl:attribute>
59 <xsl:attribute name="value">
60 <xsl:for-each select="//keyword">
61 <xsl:value-of select="normalize-space(.)"/>
62 <xsl:if test="position() != last()">
63 <xsl:text>, </xsl:text>
70 <xsl:if test="//subjectterm">
71 <xsl:element name="axf:document-info">
72 <xsl:attribute name="name">subject</xsl:attribute>
73 <xsl:attribute name="value">
74 <xsl:for-each select="//subjectterm">
75 <xsl:value-of select="normalize-space(.)"/>
76 <xsl:if test="position() != last()">
77 <xsl:text>, </xsl:text>
86 <!-- These properties are added to fo:simple-page-master -->
87 <xsl:template name="axf-page-master-properties">
88 <xsl:param name="page.master" select="''"/>
90 <xsl:if test="$crop.marks != 0">
91 <xsl:attribute name="axf:printer-marks">crop</xsl:attribute>
92 <xsl:attribute name="axf:bleed"><xsl:value-of
93 select="$crop.mark.bleed"/></xsl:attribute>
94 <xsl:attribute name="axf:printer-marks-line-width"><xsl:value-of
95 select="$crop.mark.width"/></xsl:attribute>
96 <xsl:attribute name="axf:crop-offset"><xsl:value-of
97 select="$crop.mark.offset"/></xsl:attribute>
100 <xsl:call-template name="user-axf-page-master-properties">
101 <xsl:with-param name="page.master" select="$page.master"/>
106 <xsl:template name="user-axf-page-master-properties">
107 <xsl:param name="page.master" select="''"/>