Hi Val, I can offer you a complete rewrite. This I found much easier than the adaption through the standard mechanisms. You can not use this, as there are hardcoede values I need for my diploma thesis in it, but you might follow the idea.
Stephan > -----Original Message----- > From: Val Schmidt [mailto:vschmidt@;ldeo.columbia.edu] > Sent: Dienstag, 5. November 2002 23:08 > To: [EMAIL PROTECTED] > Subject: DOCBOOK-APPS: Q's:Adding affiliation to authorgroup template > > > I need some help. I'm using a combination of an .xsl > customization layer and titlepage template to make some > changes to the formatting of my document. > > The structure of the xml looks like this: > > <book> > <bookinfo> > <title></title> > <authorgroup> > <author> > <affiliation></affiliation> > </author> > <author> > <affiliation></affiliation> > </author> > <author> > <affiliation></affiliation> > </author> > </authorgroup> > </bookinfo> > > <!--Rest of book --> > </book> > > The default fo title page template looks like the following: > > <t:titlepage element="book" wrapper="fo:block"> > <t:titlepage-content side="recto"> > <title > named-template="division.title" > param:node="ancestor-or-self::book[1]" > fo:text-align="center" > fo:font-size="&hsize5;" > fo:space-before="&hsize5space;" > fo:font-weight="bold" > fo:font-family="{$title.font.family}"/> > <subtitle > fo:text-align="center" > fo:font-size="&hsize4;" > fo:space-before="&hsize4space;" > fo:font-family="{$title.font.family}"/> > <corpauthor fo:font-size="&hsize3;" > fo:keep-with-next="always" > fo:space-before="2in"/> > <authorgroup fo:space-before="2in"/> > <author fo:font-size="&hsize3;" > fo:space-before="&hsize2space;" > fo:keep-with-next="always"/> > </t:titlepage-content> > > I've tried everything I can think of and I cannot get the > affiliation information to be displayed in the final pdf > document. Here's what I know: > 1) The author's names are displayed with the > <authorgroup/> line above > - not the <author/> line. > 2) Adding <affiliation/> between authorgroup and author > doesn't work because the affiliation xml tags are inside authorgroup > 3) Adding <affiliation/> inside the authorgroup tag > doesn't work but I'm not sure why. The resultant .xsl file > has a whole new template defined. > > Thanks, > > Val > -- > > > > ******************************** > Val E. Schmidt > Lamont Doherty Earth Observatory > Columbia University > [EMAIL PROTECTED] > mobile: (614) 286-3726 > >
<?xml version="1.0" encoding="iso-8859-1"?> <!-- e-novative DocBook environment fo/pdf parametrization --> <!-- (c) 2002 e-novative GmbH --> <!-- http://www.e-novative.de --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="#default" > <xsl:template name="book.titlepage.recto"> <fo:block text-align="center"> <fo:table width="19cm" table-layout="fixed" height="26cm" border="0.0pt solid black" > <fo:table-column/> <fo:table-body> <fo:table-row border="0.0pt solid black"> <fo:table-cell> <fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" font-weight="bold" font-family="{$title.font.family}"> <xsl:choose> <xsl:when test="bookinfo/title"> <xsl:value-of select="bookinfo/title"/> </xsl:when> <xsl:when test="title"> <xsl:value-of select="title"/> </xsl:when> </xsl:choose> </fo:block> </fo:table-cell> </fo:table-row > <fo:table-row > <fo:table-cell> <fo:block space-before="3cm" font-size="18pt" > <fo:block space-before="1mm"> DIPLOMARBEIT </fo:block> <fo:block space-before="1mm"> (mit drei Monaten Bearbeitungsdauer) </fo:block> <fo:block space-before="1mm"> zur Erlangung des Grades eines </fo:block> <fo:block space-before="1mm"> Diplom-Wirtschaftsinformatikers </fo:block> <fo:block space-before="1mm"> am Fachbereich Wirtschaft der </fo:block> <fo:block space-before="1mm"> Fachhochschule Nordostniedersachsen </fo:block> </fo:block> </fo:table-cell> </fo:table-row > <fo:table-row > <fo:table-cell> <fo:block space-before="6cm"> <fo:table width="16.5cm" table-layout="fixed" border="0.0pt solid black" text-align="left" > <fo:table-column column-width="5cm"/> <fo:table-column column-width="6cm"/> <fo:table-body> <fo:table-row border="0.0pt solid black"> <fo:table-cell> <fo:block> Eingereicht von: </fo:block> <fo:block> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/honorific"/> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/firstname"/> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/surname"/> </fo:block> <fo:block> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/authorblurb[@role='student.term']"/>. Fachsemester Wirtschaftsinformatik </fo:block> <fo:block> Matrikelnummer: <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/authorblurb[@role='student.id']"/>. </fo:block> <fo:block space-before="1cm"> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/address/street"/> </fo:block> <fo:block> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/address/postcode"/> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/address/city"/> </fo:block> <fo:block> Tel.: <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/address/phone"/> </fo:block> <fo:block space-before="1cm"> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='author']/address/city"/>, den __________________________ </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> Pr�fer </fo:block> <fo:block> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='leader']/honorific"/> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='leader']/firstname"/> <xsl:value-of select="bookinfo/authorgroup/author[@userlevel='leader']/surname"/> </fo:block> </fo:table-cell> </fo:table-row > </fo:table-body> </fo:table> </fo:block> </fo:table-cell> </fo:table-row > </fo:table-body> </fo:table> </fo:block> </xsl:template> </xsl:stylesheet>
